This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with gcc


Hi Subhash,

 Your test program compiles without any problem with my g++
g++ -v
Reading specs from
/usr/local/gcc2.95.3/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)

Have you tried to run the gcc test suite to check, that your
build of gcc checks out?

Yours sincerely,

bjorn

Subhash Agrawal wrote:
> 
> Hey guys,
> 
> I built gcc 2.95.3 and I am trying to build a test program but its giving
> error..
> 
> Any thought is appreciated ...
> 
> Error and test program is included..
> 
> bash-2.02$ g++ test.cc
> Undefined                       first referenced
>  symbol                             in file
> cout                                /var/tmp/ccXyFxyz.o
> basic_ostream<char, char_traits<char> > & operator<<<char_traits<char>
> >(basic_ostream<char, char_traits<char> > &, char const
> *)/var/tmp/ccXyFxyz.o
> ios_base::Init::~Init(void)         /var/tmp/ccXyFxyz.o
> ios_base::Init::Init(void)          /var/tmp/ccXyFxyz.o
> ld: fatal: Symbol referencing errors. No output written to a.out
> collect2: ld returned 1 exit status
> 
> bash-2.02$ cat test.cc
> #include <iostream>
> 
> main()
> {
>         cout << "Hello" ;
> }
> bash-2.02$
> 
> Regards


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]