trouble compiling c++
Phil Edwards
phil@jaj.com
Fri Jun 21 18:10:00 GMT 2002
On Fri, Jun 21, 2002 at 12:45:21PM -0700, Rexford Gibbs wrote:
> Undefined first
> encountered
> symbol in file
> cout
> /var/tmp/ccEiizXe.o
> ostream::operator ....etc
> ld: fatal: Symbol referencing errors.
> collect 2: ld returned 1 exit status
Looks like you used "gcc" to link instead of "g++". Use "g++" instead.
Phil
--
If ye love wealth greater than liberty, the tranquility of servitude greater
than the animating contest for freedom, go home and leave us in peace. We seek
not your counsel, nor your arms. Crouch down and lick the hand that feeds you;
and may posterity forget that ye were our countrymen. - Samuel Adams
More information about the Gcc
mailing list