From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp References: <3841B4F1 AT MailAndNews DOT com> Subject: Re: problem Lines: 27 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Message-ID: X-Trace: /K49oEVedpeYLe4KAe1duF53J7kNNXaiMxlnQyBegjyzcT7Px+KOxHfOHBgK4kq8pkrQV9NV47eU!3iHNB1QgQa2wWzerVidUtCkQMRJ4u2i4nXJJbxZdr7szEsaROpDQlxYCsmPlam4E3EY= X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Thu, 25 Nov 1999 03:40:54 GMT Distribution: world Date: Thu, 25 Nov 1999 03:40:54 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Psycho_Circus" wrote: > When trying the classic hello world program // you mean this #include int main() { cout << "hello psycho circus\n"; return 0; } // right? > I get this error: > > undefined reference to 'cout' > undefined reference to 'ostream::operator<<(char const *)' > > Any help is greatly appreciated You forgot to add -lstdcxx to the end of your gcc command line when linking the program. Using gxx instead of gcc will handle this for you. Damian Yerrick