public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "schoen at ztt dot fh-worms dot de" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/14720] New: Undefined reference to `std::basic_ios<char, std::char_traits<char> >::_M_setstate(std::_Ios_Iostate) Date: Wed, 24 Mar 2004 17:21:00 -0000 [thread overview] Message-ID: <20040324172102.14720.schoen@ztt.fh-worms.de> (raw) Here is the output of: "gcc -v -save-temps all-your-options source-file" Compile command: g++ -v -save-temps -I /home/schoen/src/projects/meprosCpp/trunk/3rdparty/smartAssert -I /home/schoen/src/projects/meprosCpp/trunk/3rdparty/boost/linux Main.cpp Compiler Output: Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/specs Configured with: ../configure --prefix=/usr --libdir=/usr/lib --with-slibdir=/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --enable-long-long --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=c,c++,ada,f77,objc,java,pascal --host=i586-mandrake-linux-gnu --with-system-zlib Thread model: posix gcc version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/cc1plus -E -D__GNUG__=3 -quiet -v -I /home/schoen/src/projects/meprosCpp/trunk/3rdparty/smartAssert -I /home/schoen/src/projects/meprosCpp/trunk/3rdparty/boost/linux -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=2 -D_GNU_SOURCE Main.cpp Main.ii ignoring nonexistent directory "/usr/i586-mandrake-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /home/schoen/src/projects/meprosCpp/trunk/3rdparty/smartAssert /home/schoen/src/projects/meprosCpp/trunk/3rdparty/boost/linux /usr/include/c++/3.3.2 /usr/include/c++/3.3.2/i586-mandrake-linux-gnu /usr/include/c++/3.3.2/backward /usr/local/include /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/include /usr/include End of search list. /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/cc1plus -fpreprocessed Main.ii -quiet -dumpbase Main.cpp -auxbase Main -version -o Main.s GNU C++ version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk) (i586-mandrake-linux-gnu) compiled by GNU C version 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk). GGC heuristics: --param ggc-min-expand=64 --param ggc-min-heapsize=64306 as -V -Qy -o Main.o Main.s GNU assembler version 2.14.90.0.7 (i586-mandrake-linux-gnu) using BFD version 2.14.90.0.7 20031029 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/collect2 --eh-frame-hdr -m elf_i386 -dynamic-linker /lib/ld-linux.so.2 /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crt1.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crti.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/crtbegin.o -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2 -L/usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../.. Main.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/crtend.o /usr/lib/gcc-lib/i586-mandrake-linux-gnu/3.3.2/../../../crtn.o Main.o(.gnu.linkonce.t._ZSt7getlineIcSt11char_traitsIcEN5boost12smart_assert7Private18smart_assert_allocIcEEERSt13basic_istreamIT_T0_ESB_RSbIS8_S9_T1_ES8_+0x18f): In function `std::basic_istream<char, std::char_traits<char> >& std::getline<char, std::char_traits<char>, boost::smart_assert::Private::smart_assert_alloc<char> >(std::basic_istream<char, std::char_traits<char> >&, std::basic_string<char, std::char_traits<char>, boost::smart_assert::Private::smart_assert_alloc<char> >&, char)': : undefined reference to `std::basic_ios<char, std::char_traits<char> >::_M_setstate(std::_Ios_Iostate)' collect2: ld returned 1 exit status Additional Information: The problem also occurs on Gentoo Linux with gcc 3.3.2, and also with gcc 3.3.3 on Mandrake 10.0. The problem does NOT occur with gcc 3.3.1 on Mandrake 10.0 (I didn't test gcc 3.3.1 on Gentoo). The problem does NOT occur when additionally linking against the static library: libstdc++.a. -- Summary: Undefined reference to `std::basic_ios<char, std::char_traits<char> >::_M_setstate(std::_Ios_Iostate) Product: gcc Version: 3.3.2 Status: UNCONFIRMED Severity: critical Priority: P2 Component: libstdc++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: schoen at ztt dot fh-worms dot de CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14720
next reply other threads:[~2004-03-24 17:21 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-03-24 17:21 schoen at ztt dot fh-worms dot de [this message] 2004-03-24 17:25 ` [Bug libstdc++/14720] " schoen at ztt dot fh-worms dot de 2004-03-24 17:30 ` pinskia at gcc dot gnu dot org 2004-03-29 17:54 ` bkoz at gcc dot gnu dot org 2004-03-29 18:55 ` bkoz at gcc dot gnu dot org 2004-05-14 15:29 ` cvs-commit at gcc dot gnu dot org 2004-05-14 18:08 ` pinskia at gcc dot gnu dot org 2004-05-27 2:08 ` cvs-commit at gcc dot gnu dot org 2004-05-27 19:25 ` cvs-commit at gcc dot gnu dot org
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=20040324172102.14720.schoen@ztt.fh-worms.de \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@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: linkBe 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).