[Boost-bugs] [Boost C++ Libraries] #6152: Boost undefined reference during compiling

Subject: [Boost-bugs] [Boost C++ Libraries] #6152: Boost undefined reference during compiling
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-20 06:18:26


#6152: Boost undefined reference during compiling
----------------------------------+-----------------------------------------
 Reporter: forumme5487@… | Owner:
     Type: Support Requests | Status: new
Milestone: To Be Determined | Component: Building Boost
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
----------------------------------+-----------------------------------------
 Hi,

 I am getting a compile error trying to compile a simple tester program
 from the documentation.


 {{{
 C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text+0xa6): undefined
 reference to `_imp___ZN5boost6thread4joinEv'
 C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text+0xb4): undefined
 reference to `_imp___ZN5boost6threadD1Ev'
 C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text+0xcf): undefined
 reference to `_imp___ZN5boost6threadD1Ev'
 C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text$_ZN5boost11this_thread18interruptible_waitEy[boost::this_thread::interruptible_wait(unsigned
 long long)]+0x4a): undefined reference to
 `_imp___ZN5boost11this_thread18interruptible_waitEPvNS_6detail7timeoutE'
 C:\DOCUME~1\A\LOCALS~1\Temp\ccRsXzHu.o:tester.cpp:(.text$_ZN5boost6threadC1IPFvvEEET_NS_10disable_ifINS_14is_convertibleIRS4_NS_6detail13thread_move_tIS4_EEEEPNS0_5dummyEE4typeE[boost::thread::thread<void
 (*)()>(void (*)(), boost::disable_if<boost::is_convertible<void (*&)(),
 boost::detail::thread_move_t<void (*)()> >,
 boost::thread::dummy*>::type)]+0x23): undefined reference to
 `_imp___ZN5boost6thread12start_threadEv'
 collect2: ld returned 1 exit status
 }}}

 I am using mingw 4.5 and g++ 4.5.2 on windows.

 I hope someone can help me solve this problem. And I hope this is the
 right place to ask. :)


 Thanks.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6152>
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:07 UTC