From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28407 invoked by alias); 10 Sep 2013 09:46:58 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28339 invoked by uid 48); 10 Sep 2013 09:46:56 -0000 From: "pluto at agmk dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/54314] [4.8 Regression] undefined references to 'construction vtable for std::ostream-in-std::basic_ostringstream, std::allocator >' Date: Tue, 10 Sep 2013 09:46:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: link-failure X-Bugzilla-Severity: major X-Bugzilla-Who: pluto at agmk dot net X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: jason at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-09/txt/msg00665.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54314 Pawel Sikora changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pluto at agmk dot net --- Comment #39 from Pawel Sikora --- Hi, i see mentioned linker error on the current gcc-4.8.2 for i686-gnu-linux target and somehow it works for x86_64-gnu-linux target. ../../../lib/libUnitTest++.a(Test.cpp.o):Test.cpp:function construction vtable for std::__7::basic_ostream >-in-UnitTest::MemoryOutStream: error: undefined reference to 'virtual thunk to std::__7::basic_ostream >::~basic_ostream()' ../../../lib/libUnitTest++.a(Test.cpp.o):Test.cpp:function construction vtable for std::__7::basic_ostream >-in-UnitTest::MemoryOutStream: error: undefined reference to 'virtual thunk to std::__7::basic_ostream >::~basic_ostream()' ../../../lib/libUnitTest++.a(Test.cpp.o):Test.cpp:function construction vtable for std::__7::basic_ostringstream, std::__7::allocator >-in-UnitTest::MemoryOutStream: error: undefined reference to 'virtual thunk to std::__7::basic_ostringstream, std::__7::allocator >::~basic_ostringstream()' ../../../lib/libUnitTest++.a(Test.cpp.o):Test.cpp:function construction vtable for std::__7::basic_ostringstream, std::__7::allocator >-in-UnitTest::MemoryOutStream: error: undefined reference to 'virtual thunk to std::__7::basic_ostringstream, std::__7::allocator >::~basic_ostringstream()' MemoryOutStream is declared in the UnitTest++ as: #include namespace UnitTest { class MemoryOutStream : public std::ostringstream { public: MemoryOutStream() {} char const* GetText() const; private: MemoryOutStream(MemoryOutStream const&); void operator =(MemoryOutStream const&); mutable std::string m_text; }; }