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]

Problem with gcc


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]