public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Subhash Agrawal" <subhash.agrawal@ss8.com>
To: "Gcc-Help \(E-mail\)" <gcc-help@gcc.gnu.org>
Subject: gcc 2.95.3 help
Date: Mon, 18 Mar 2002 13:19:00 -0000	[thread overview]
Message-ID: <000b01c1ceb1$c3bf4530$59cc4792@centigram.com> (raw)

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

                 reply	other threads:[~2002-03-18 21:19 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='000b01c1ceb1$c3bf4530$59cc4792@centigram.com' \
    --to=subhash.agrawal@ss8.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).