This is the mail archive of the
mailing list for the Cygwin project.
Re: gcc using termios.h and -mno-cygwin
- From: Shankar Unni <shankar at cotagesoft dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 07 Jul 2003 13:04:22 -0700
- Subject: Re: gcc using termios.h and -mno-cygwin
- References: <3F034C90.9EF9D77C@staktek.com>
Terry Dabbs wrote:
(1) Should this work with termios.h and -mno-cygwin together?
Not unless Windows natively supports the termios interface (which it
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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html