This is the mail archive of the cygwin@sourceware.cygnus.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]

Re: Getting simple STL program to compile


" Clark Sims " <clarksimsgnu@my-Deja.com> writes:
>  
> This is rather unsettling. Don't the programmers at Cygnus test for STL funct
> ionality?

STL works just fine. Why would "Cygnus" test for features that are
specific to Microsoft runtime? If I remember correctly, you are 
using conio.h and getch(), which are not part of UNIX/POSIX nor 
standard C++, so Cygwin obviously doesn't support it.

There is no conio.h in Cygwin, nor will there be a conio.h in Cygwin in 
the future.

And, contrary to what you believe, getch is not a "Unix" function. There 
is a getch in curses, but that's obviously not what you're looking for 
here.

Mixing win32-specific getch and C++ streams is also a very bad idea. Your
use of fflush(NULL) seems odd -- you can't portably "flush" input streams.

> This is such a big part of where C++ programming is heading.

As I mention earlier, STL works just fine. You need to learn what is STL
and what is not STL before making such statements.

> Isn't this basicly the whole compiler. Wouldn't it have been easier to just c
> hange the path? Why download cygwin at all?

If you're going to use POSIX functionality, perhaps mingw32 port is what
you need.

http://www.xraylith.wisc.edu/~khan/software/gnu-win32/

while you're there, also check mno-cygwin howto to see how -mno-cygwin
really works.

Regards,
Mumit


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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