X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; q=dns; s=default; b=MDosEm9B5EeioaeI +5ri36oH0pkJb7wWvcbuvoPhdtda5eE+nojFXQtoXtFENd5fqp0e3LFmZ7trjX+q i50usGzFkU0H9svbT4qmWtc2RIJu8h42UTsiaJSy0P2TGElzzeUkacYpi9gwEswi m+B9HiggcKcD0KzCEnvt6q657uI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:subject:to:references:from:message-id:date :mime-version:in-reply-to:content-type :content-transfer-encoding; s=default; bh=3lyIsELCUlrDILqzamhTGQ HQGBo=; b=xURRCeJU6pKhQ7lq5OdRTDRqTSHhcdNpQr07xIhPf9yZk6rzPzIsBb ja0n8lNhw/MRXhRnr20kCcIQ6GSf3Qnw/j4sXIjhTdOsINHIMlCZ/Ac5vJPlaDsX xvSdmvazky14ZXf2HynL3XoY8HqkNJ9Fhd1mczAvBUK61CS4qJVog= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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 Subject: Re: printf, "unable to initialize PRN" message To: cygwin AT cygwin DOT 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 21:13:56 +0200 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 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