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: gcc library



-----Original Message-----
From: Wei Xu <weixuz@yesic.com>
To: cygwin@sourceware.cygnus.com <cygwin@sourceware.cygnus.com>
Date: Mittwoch, 7. Juli 1999 16:28
Subject: gcc library


>try.cc: In function `int main(int, char **)':
>try.cc:6: warning: implicit declaration of function `int printf(...)'
>C:\WINDOWS\TEMP\ccz14xFI.o(.text+0x1e):try.cc: undefined reference to =
>`cout'
>C:\WINDOWS\TEMP\ccz14xFI.o(.text+0x23):try.cc: undefined reference to =
>`ostream::
>operator<<(char const *)'
>collect2: ld returned 1 exit status

Compile with g++ instead of gcc, otherwise the required library 'libstdc++'
is not included when linked.

-Thomas



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