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]

gcc 2.95.3 help


Hi guys,

I built gcc 2.95.3 from sources using packaged gcc 2.95.2 compiler on
solaris 7.
But I am unable to compile a sample program using this gcc which has cout
statement.Otherwise I am able to build large programs with cout
statements.Its giving linking errors.

My sample program is
#include <iostream>
using namespace std;
main()
{
        cout << "Hello" ;
}

bash-2.02$ g++ test.cpp
Undefined                       first referenced
 symbol                             in file
cout                                /var/tmp/ccCVLrFa.o
basic_ostream<char, char_traits<char> > & operator<<<char_traits<char>
>(basic_ostream<char, char_traits<char> > &, char const
*)/var/tmp/ccCVLrFa.o
ios_base::Init::~Init(void)         /var/tmp/ccCVLrFa.o
ios_base::Init::Init(void)          /var/tmp/ccCVLrFa.o
ld: fatal: Symbol referencing errors. No output written to a.out
collect2: ld returned 1 exit status

I ran gmake check for gcc and I found following result
./mkcheck 0 . ../../../gcc-2.95.3/libstdc++
running mkcheck
./mkcheck: testing the build directory
17_intro/header_ciso646.cc
        st_pass
17_intro/header_fstream.cc
        st_fail
17_intro/header_iomanip.cc
        st_fail
17_intro/header_ios.cc
        st_fail
17_intro/header_iosfwd.cc
        st_pass
17_intro/header_iostream.cc
        st_fail
17_intro/header_istream.cc
        st_fail
17_intro/header_ostream.cc
        st_fail
17_intro/header_sstream.cc
        st_fail
17_intro/header_streambuf.cc
        st_fail
17_intro/headers.cc
        st_fail
18_support/numeric_limits.cc
        st_pass
21_strings/append.cc
        st_fail
21_strings/capacity.cc
        st_fail
21_strings/char_traits.cc

It had lots of other check but I don't know which one I should look
specifically.

Please help me.

Subhash


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