public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44092]  New: Undefined Symbol: std::basic_string
@ 2010-05-12  9:11 stefanwin at gmx dot net
  2010-05-12  9:32 ` [Bug c++/44092] " paolo dot carlini at oracle dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: stefanwin at gmx dot net @ 2010-05-12  9:11 UTC (permalink / raw)
  To: gcc-bugs

If I compile a short Programm with g++ and I declare a STL-String (only
declare!), than it is ok ("g++ -c -Wall Progname.c").
But if I link the same programm with "g++ -o Progname Progname.o", than I get
an linker error:

ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<
char>, std::allocator<char> >::basic_string()
ld: 0711-317 ERROR: Undefined symbol: .std::basic_string<char,
std::char_traits<
char>, std::allocator<char> >::~basic_string()

If I use some other STL-Funtions as e.g. "maps", "vectors", I get no errors.

I also have tried the "gcc-4.2.0", but the same problem (as with -> "gcc
4.0.0").
Even a linker option "-lstdc++" does not help.


-- 
           Summary: Undefined Symbol: std::basic_string
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: blocker
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: stefanwin at gmx dot net
  GCC host triplet: IBM PowercPC / AIX 5.3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44092


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/44092] Undefined Symbol: std::basic_string
  2010-05-12  9:11 [Bug c++/44092] New: Undefined Symbol: std::basic_string stefanwin at gmx dot net
@ 2010-05-12  9:32 ` paolo dot carlini at oracle dot com
  2010-05-12 10:34 ` rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-05-12  9:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from paolo dot carlini at oracle dot com  2010-05-12 09:31 -------
Something seems seriously broken in your setup, of course in a proper one this
kind of problem would have blocked the release. Let's CC David...


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dje dot gcc at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44092


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/44092] Undefined Symbol: std::basic_string
  2010-05-12  9:11 [Bug c++/44092] New: Undefined Symbol: std::basic_string stefanwin at gmx dot net
  2010-05-12  9:32 ` [Bug c++/44092] " paolo dot carlini at oracle dot com
@ 2010-05-12 10:34 ` rguenth at gcc dot gnu dot org
  2010-05-13 17:23 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-05-12 10:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-05-12 10:34 -------
And neither 4.0.0 nor 4.2.x are maintained anymore nor do you provide a
testcase to verify your failure.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44092


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/44092] Undefined Symbol: std::basic_string
  2010-05-12  9:11 [Bug c++/44092] New: Undefined Symbol: std::basic_string stefanwin at gmx dot net
  2010-05-12  9:32 ` [Bug c++/44092] " paolo dot carlini at oracle dot com
  2010-05-12 10:34 ` rguenth at gcc dot gnu dot org
@ 2010-05-13 17:23 ` pinskia at gcc dot gnu dot org
  2010-05-14 10:04 ` stefanwin at gmx dot net
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2010-05-13 17:23 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|blocker                     |normal


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44092


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/44092] Undefined Symbol: std::basic_string
  2010-05-12  9:11 [Bug c++/44092] New: Undefined Symbol: std::basic_string stefanwin at gmx dot net
                   ` (2 preceding siblings ...)
  2010-05-13 17:23 ` pinskia at gcc dot gnu dot org
@ 2010-05-14 10:04 ` stefanwin at gmx dot net
  2010-05-14 10:27 ` paolo dot carlini at oracle dot com
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: stefanwin at gmx dot net @ 2010-05-14 10:04 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from stefanwin at gmx dot net  2010-05-14 10:04 -------
My sample program:

// g++ 4.0.0-1
// compile: g++ -c -Wall progname.c -> ist ok
// link (AIX linker "ld"): g++ -o progname progname.o 
// ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<
// char>, std::allocator<char> >::basic_string()
// ERROR: Undefined symbol: .std::basic_string<char, std::char_traits<
// char>, std::allocator<char> >::~basic_string()
// 

#include <stdio.h>
#include <string>

using namespace std;

//------------------------------------ main --------------------------------
// 
int main (int argc,char **argv)
{
    string test;

    return(0);
}


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44092


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/44092] Undefined Symbol: std::basic_string
  2010-05-12  9:11 [Bug c++/44092] New: Undefined Symbol: std::basic_string stefanwin at gmx dot net
                   ` (3 preceding siblings ...)
  2010-05-14 10:04 ` stefanwin at gmx dot net
@ 2010-05-14 10:27 ` paolo dot carlini at oracle dot com
  2010-05-14 11:55 ` stefanwin at gmx dot net
  2010-05-14 12:05 ` redi at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: paolo dot carlini at oracle dot com @ 2010-05-14 10:27 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from paolo dot carlini at oracle dot com  2010-05-14 10:27 -------
Yes. Note that gcc-4.0.x, 4.1.x, and 4.2.x are *not maintained anymore* and
bugs affecting only those release series are simply closed.

Thus, before anything else, try a current release, preferably gcc-4.4.x.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44092


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/44092] Undefined Symbol: std::basic_string
  2010-05-12  9:11 [Bug c++/44092] New: Undefined Symbol: std::basic_string stefanwin at gmx dot net
                   ` (4 preceding siblings ...)
  2010-05-14 10:27 ` paolo dot carlini at oracle dot com
@ 2010-05-14 11:55 ` stefanwin at gmx dot net
  2010-05-14 12:05 ` redi at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: stefanwin at gmx dot net @ 2010-05-14 11:55 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from stefanwin at gmx dot net  2010-05-14 11:55 -------
If I want to install the gcc-4.4.0, I get the error "libgmp.a" and libmpfr.a
not found.
It seems I have to rebuild something.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44092


^ permalink raw reply	[flat|nested] 8+ messages in thread

* [Bug c++/44092] Undefined Symbol: std::basic_string
  2010-05-12  9:11 [Bug c++/44092] New: Undefined Symbol: std::basic_string stefanwin at gmx dot net
                   ` (5 preceding siblings ...)
  2010-05-14 11:55 ` stefanwin at gmx dot net
@ 2010-05-14 12:05 ` redi at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: redi at gcc dot gnu dot org @ 2010-05-14 12:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from redi at gcc dot gnu dot org  2010-05-14 12:05 -------
You might want to read http://gcc.gnu.org/install/ starting with
"Prerequisites"


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44092


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-05-14 12:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-12  9:11 [Bug c++/44092] New: Undefined Symbol: std::basic_string stefanwin at gmx dot net
2010-05-12  9:32 ` [Bug c++/44092] " paolo dot carlini at oracle dot com
2010-05-12 10:34 ` rguenth at gcc dot gnu dot org
2010-05-13 17:23 ` pinskia at gcc dot gnu dot org
2010-05-14 10:04 ` stefanwin at gmx dot net
2010-05-14 10:27 ` paolo dot carlini at oracle dot com
2010-05-14 11:55 ` stefanwin at gmx dot net
2010-05-14 12:05 ` redi at gcc dot gnu dot org

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).