public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* gcc 2.95.3 help
@ 2002-03-18 13:19 Subhash Agrawal
  0 siblings, 0 replies; only message in thread
From: Subhash Agrawal @ 2002-03-18 13:19 UTC (permalink / raw)
  To: Gcc-Help (E-mail)

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-03-18 21:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-03-18 13:19 gcc 2.95.3 help Subhash Agrawal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).