This is the mail archive of the cygwin@cygwin.com 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: gcc using termios.h and -mno-cygwin


Terry Dabbs wrote:

(1) Should this work with termios.h and -mno-cygwin together?

Not unless Windows natively supports the termios interface (which it doesn't).


When you use -mno-cygwin, what you're getting is pretty much the naked Windows API. The headers and .libs are provided by MinGW, of course (since MSFT doesn't ship header files with the system), but MinGW doesn't add any additional APIs over and above what Windows provides in its own DLLs (that's what Cygwin is there for!).

So no, you can't expect POSIX calls to work with -mno-cygwin. Stick to ANSI C and Win32 API calls. If you don't know the difference between ANSI C and "Unix" (i.e. if you think that every API call on Linux/Unix is "part of C"), go read about it first.

--
Shankar.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


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