[Boost-bugs] [Boost C++ Libraries] #7931: Linking error on using boost/thread.hpp

Subject: [Boost-bugs] [Boost C++ Libraries] #7931: Linking error on using boost/thread.hpp
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-01-27 11:17:24


#7931: Linking error on using boost/thread.hpp
-----------------------------------------------------+----------------------
 Reporter: kamesh <kameshdeepakbetablet@…> | Type: Bugs
   Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.52.0
 Severity: Showstopper | Keywords:
-----------------------------------------------------+----------------------
 Hi,

 I am trying to reproduce the error reported in
 https://svn.boost.org/trac/boost/ticket/7923. But the program in bug 7923
 fails during linking with error:

 /tmp/ccdsV31U.o:7923.cpp:(.text+0x424): undefined reference to
 `boost::system::generic_category()'
 /tmp/ccdsV31U.o:7923.cpp:(.text+0x42e): undefined reference to
 `boost::system::generic_category()'
 /tmp/ccdsV31U.o:7923.cpp:(.text+0x438): undefined reference to
 `boost::system::system_category()'
 /usr/lib/gcc/i686-pc-cygwin/4.5.3/../../../../i686-pc-cygwin/bin/ld:
 /tmp/ccdsV31U.o: bad reloc address 0x8 in section
 `.text$_ZNSt9exceptionC2Ev[std::exception::exception()]'
 collect2: ld returned 1 exit status

 On removing the the "#include<boost/thread.hpp>" statement the error
 disappears.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/7931>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:11 UTC