[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
C++ question
- Date: Thu, 25 May 2000 13:39:34 +0400
- From: alexey at vocord.com (Alexey)
- Subject: C++ question
Hi.
Did any one face with following problem (if it's realy problem) ?
If I took "hello world" sample, re-name it from test.c to test.cc and
re-place
printf to cout it build test.o with g++ but try to link it to executable
file with gcc - the resul will be :
undefined reference to cout
undefined reference to ostream::operator <<(char const *)
I can fix it in target.cfg
CC=g++ instead of gcc, but is there another way to solve it?
Regards,
Alexey
- Follow-Ups:
- C++ question
- From: joel.sherrill at OARcorp.com (Joel Sherrill)