This is the mail archive of the 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
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,


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++
> 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
> #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]