Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com Message-ID: <060101bec888$e8f09160$69856286@tpfaff.pcs.ditec.de> From: "Thomas Pfaff" To: "Wei Xu" , Subject: Re: gcc library Date: Wed, 7 Jul 1999 16:56:35 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-Mimeole: Produced By Microsoft MimeOLE V4.72.3612.1700 Content-Transfer-Encoding: 7bit -----Original Message----- From: Wei Xu To: cygwin AT sourceware DOT cygnus DOT 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 AT sourceware DOT cygnus DOT com