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; 9+ 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] 9+ messages in thread
[parent not found: <bug-44092-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2010-09-29 15:12 UTC | newest]

Thread overview: 9+ 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
     [not found] <bug-44092-4@http.gcc.gnu.org/bugzilla/>
2010-09-29 16:55 ` stefanwin at gmx dot net

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