This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: printf, "unable to initialize PRN" message


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]