Home » Developer & Programmer » Precompilers, OCI & OCCI » c++ compilation
c++ compilation [message #261545] Thu, 23 August 2007 00:43 Go to next message
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.
Re: c++ compilation [message #261595 is a reply to message #261545] Thu, 23 August 2007 01:58 Go to previous messageGo to next message
Michel Cadot
Messages: 64145
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
I don't know the answer to your question but don't use red color it hurts my eyes.
In addition, read and follow How to format your posts

Regards
Michel
Re: c++ compilation [message #262444 is a reply to message #261595] Mon, 27 August 2007 01:08 Go to previous messageGo to next message
shahnazurs
Messages: 240
Registered: June 2005
Location: India
Senior Member
Anybody have answer for my question?

Thanks.
Re: c++ compilation [message #334973 is a reply to message #262444] Sat, 19 July 2008 00:39 Go to previous message
mosaic
Messages: 3
Registered: July 2008
Junior Member
g++ not use gcc
Previous Topic: abort (coredump) with OCCI
Next Topic: Unable to connect using OCCI and oracle 10.2.0.3.0
Goto Forum:
  


Current Time: Fri Dec 09 11:48:26 CST 2016

Total time taken to generate the page: 0.12573 seconds