public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Klein, Bernhard" <Bernhard.Klein@logicacmg.com>
To: "'gcc-help@gcc.gnu.org'" <gcc-help@gcc.gnu.org>,
	"'gcc-help-faq@gcc.gnu.org'" <gcc-help-faq@gcc.gnu.org>
Subject: gcc 3.2.2 & STL library
Date: Mon, 24 Feb 2003 13:29:00 -0000	[thread overview]
Message-ID: <0F232CC93A58D6119C1600B0D0799B810107DFE2@hamsrvmx03.logica.co.uk> (raw)


Hi All,

I'm a newbie in gcc under Solaris 2.9 and try to work with the actual gcc
release 3.2.2 and STL. 

I made a very simple c++ program including some STL functions ( like string,
iostream, etc). 
Compiling like this g++ -o cppstl cppstl.cpp
works fine without compiler or linker errors, but after starting the program
I got this error:
ld.so.1: cppstl: fatal: relocation error: file cppstl: symbol _ZSt4cout:
referenced symbol not found
Killed

mhm, It seems that my binary can'T find a library or something else ( but I
don't know which library or what ever needed ).

After compiling with:    g++ -static -o cppstl cppstl.cpp
my little program works fine.

I hope that somebody can help me.

Bernd Klein 
---------------------------------------------------------- 
Logica GmbH 
Financial Services, GB 21 
Faulenstraße 31-35 
28195 Bremen 
Phone : +49 421 30 96-121 
Fax : +49 421 30 96-118 
Email : kleinbe@logica.com 
---------------------------------------------------------- 

This e-mail and any attachment is for authorised use by the intended recipient(s) only.  It may contain proprietary material, confidential information and/or be subject to legal privilege.  It should not be copied, disclosed to, retained or used by, any other party.  If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender.  Thank you.

             reply	other threads:[~2003-02-24 13:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-02-24 13:29 Klein, Bernhard [this message]
2003-02-25  6:06 ` Michael H. Cox
2003-03-07  5:56   ` LLeweLLyn Reese

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=0F232CC93A58D6119C1600B0D0799B810107DFE2@hamsrvmx03.logica.co.uk \
    --to=bernhard.klein@logicacmg.com \
    --cc=gcc-help-faq@gcc.gnu.org \
    --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).