This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: Problems with gcc.
- To: paoletti at izm dot fhg dot de
- Subject: Re: Problems with gcc.
- From: DJ Delorie <dj at delorie dot com>
- Date: Wed, 13 Sep 2000 14:32:06 -0400
- CC: cygwin at sources dot redhat dot com
- References: <39BFC59D.2976CE06@izm.fhg.de>
> $ 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