c++ compilation [message #261545] |
Thu, 23 August 2007 00:43 |
shahnazurs
Messages: 240 Registered: June 2005 Location: India
|
Senior Member |
|
|
ex.cpp
#include <iostream.h>
main()
{
cout<<"hi\n";
return(0);
}
when i compile like
gcc -o ex ex.cpp
i got error like
Undefined first referenced
symbol in file
cout /var/tmp/ccA5wJl1.o
ostream::operator<<(char const *) /var/tmp/ccA5wJl1.o
ld: fatal: Symbol referencing errors. No output written to ex
collect2: ld returned 1 exit status
Please help me how to compile c++ program
SunOs 5.9 is the version of OS
Thanks.
|
|
|
|
|
|