From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10257 invoked by alias); 11 Sep 2019 19:14:10 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 10250 invoked by uid 89); 11 Sep 2019 19:14:10 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=CON, 1x, H*r:sk:mailout, device X-HELO: mailout01.t-online.de Received: from mailout01.t-online.de (HELO mailout01.t-online.de) (194.25.134.80) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 11 Sep 2019 19:14:08 +0000 Received: from fwd39.aul.t-online.de (fwd39.aul.t-online.de [172.20.27.138]) by mailout01.t-online.de (Postfix) with SMTP id 41F2F4295D76 for ; Wed, 11 Sep 2019 21:14:05 +0200 (CEST) Received: from [192.168.178.24] (TWFPaiZvYh-xa9TJGVmaC3jLJai3Xpt-S7p5dGo9L9wSy6PVATHfL09XvKo8ExlwKW@[79.228.70.50]) by fwd39.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1i8843-16zcno0; Wed, 11 Sep 2019 21:14:03 +0200 Subject: Re: printf, "unable to initialize PRN" message To: cygwin@cygwin.com References: From: =?UTF-8?Q?Hans-Bernhard_Br=c3=b6ker?= Openpgp: preference=signencrypt Message-ID: <5d142984-2829-7df3-b984-5db1ca616deb@t-online.de> Date: Wed, 11 Sep 2019 19:54:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-09/txt/msg00125.txt.bz2 Am 11.09.2019 um 02:03 schrieb Blair, Charles E III: > I have just installed cygwin (64 bit) and gcc. The "hello world" program > works, but > > #include > int main(){printf( "%c\n" , 'X' );return 0;} > > leads to > > Unable to initialize device PRN > Unable to initialize device PRN I suspect you've just rediscovered ancient knowledge, which dates back as far as MS-DOS 1.x: THOU SHALT NOT NAME THINGS "CON", "COM", "NUL" or "PRN" Those names are reserved for DOS device drivers (similar to, but much more pervasive, than Unix' /dev/printer' etc.) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple