This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: trouble compiling c++
- From: Phil Edwards <phil at jaj dot com>
- To: Rexford Gibbs <herk at cwnet dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Fri, 21 Jun 2002 20:39:04 -0400
- Subject: Re: trouble compiling c++
- References: <3D138251.3040006@cwnet.com>
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