www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/15/20:16:04

Date: Thu, 15 Feb 1996 20:09:23 -0500
To: Henk Hennuin <tms_hennuin AT nlthcl DOT bcs DOT cs DOT philips DOT com>, djgpp AT delorie DOT com
From: Ian Viemeister <vmeister AT ios DOT com>
Subject: Re: djgpp and the use of cout

At 01:40 PM 2/14/96 -0800, Henk Hennuin wrote:
>The compiler doesn't complain. The linker gives these errors:
>
>test.cc(.text+0xa5): undefined reference to `endl(ostream &)'
>test.cc(.text+0xaa): undefined reference to `cout'
>test.cc(.text+0xaf): undefined reference to `ostream::operator<<(ostream
&(*)(ostream &))'

Well, this is answered in Section 8.8 of the FAQ, but here's the 
solution: Run "gcc [filename.cc] -lgpp" 
The '-lgpp' tells the linker to search libgpp.a for unresolved functions.

Ian
vmeister AT ios DOT com
http://ios.com/~vmeister/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019