* printf, "unable to initialize PRN" message
@ 2019-09-11 0:50 Blair, Charles E III
2019-09-11 6:55 ` Andrey Repin
2019-09-11 19:54 ` Hans-Bernhard Bröker
0 siblings, 2 replies; 3+ messages in thread
From: Blair, Charles E III @ 2019-09-11 0:50 UTC (permalink / raw)
To: cygwin
I have just installed cygwin (64 bit) and gcc. The "hello world" program
works, but
#include<stdio.h>
int main(){printf( "%c\n" , 'X' );return 0;}
leads to
Unable to initialize device PRN
Unable to initialize device PRN
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: printf, "unable to initialize PRN" message
2019-09-11 0:50 printf, "unable to initialize PRN" message Blair, Charles E III
@ 2019-09-11 6:55 ` Andrey Repin
2019-09-11 19:54 ` Hans-Bernhard Bröker
1 sibling, 0 replies; 3+ messages in thread
From: Andrey Repin @ 2019-09-11 6:55 UTC (permalink / raw)
To: Blair, Charles E III, cygwin
Greetings, Blair, Charles E III!
> I have just installed cygwin (64 bit) and gcc. The "hello world" program
> works, but
> #include<stdio.h>
> int main(){printf( "%c\n" , 'X' );return 0;}
> leads to
>
> Unable to initialize device PRN
> Unable to initialize device PRN
Are you sure you're running the right program?
Try "./<yourprogram>" instead of just "<yourprogram>".
--
With best regards,
Andrey Repin
Wednesday, September 11, 2019 3:43:18
Sorry for my terrible english...
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: printf, "unable to initialize PRN" message
2019-09-11 0:50 printf, "unable to initialize PRN" message Blair, Charles E III
2019-09-11 6:55 ` Andrey Repin
@ 2019-09-11 19:54 ` Hans-Bernhard Bröker
1 sibling, 0 replies; 3+ messages in thread
From: Hans-Bernhard Bröker @ 2019-09-11 19:54 UTC (permalink / raw)
To: cygwin
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<stdio.h>
> 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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-09-11 19:14 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-11 0:50 printf, "unable to initialize PRN" message Blair, Charles E III
2019-09-11 6:55 ` Andrey Repin
2019-09-11 19:54 ` Hans-Bernhard Bröker
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).