This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
C++ compiler question
- To: gcc at gcc dot gnu dot org
- Subject: C++ compiler question
- From: Tim shao <shaom at yahoo dot com>
- Date: Mon, 4 Jun 2001 19:52:09 -0700 (PDT)
- Cc: shaom at yahoo dot com
Hi
I installed GNU provided by SUN Software Companion CD.
When I tested the GCC to compile my C++ program, I got
following error message:
Undefined First referened
symbol in file
cout
/var/tmp/ccturaOf.o
ostream::operator<<(char const*)
/var/tmp/ccturaOf.o
id:fatal: symbol referencing errors. No output written
to a.out
collect2:id returned 1 exit status
*******************
Here is my simple c++ program
#include<iostream.h>
void main()
{
cout<<"It's a test" << "\n" ;
}
Something wrong with my installation ? Please help me.
Thanks
Ming
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year! http://personal.mail.yahoo.com/