This is the mail archive of the cygwin@sources.redhat.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: Problems with gcc.



> $ gcc prova.cc
> /cygdrive/c/TEMP/ccTSU)Ej.o(.text+0x20):prova.cc: undefined reference to
> 'cout'
> /cygdrive/c/TEMP/ccTSU)Ej.o(.text+0x20):prova.cc: undefined reference to
> 'ostream::operator<<(char const *)''

This isn't a cygwin problem.  When you build a C++ program, you either
have to use the C++-aware version of gcc (g++) or manually specify
-lstdc++ on the command line to link the C++ libraries.

> The directories c:/cygwin/usr/bin and c:/cygwin/usr/local/bin are void.
> Is that normal?

If you are looking with explorer, yes.  The first has /bin mounted
over it and the second is intentionally empty.

--
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]