Re: [Boost-bugs] [Boost C++ Libraries] #5964: Linkage fails with cross-compiled boost.thread

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5964: Linkage fails with cross-compiled boost.thread
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-10-11 05:37:46


#5964: Linkage fails with cross-compiled boost.thread
--------------------------------------+-------------------------------------
  Reporter: anonymous | Owner: anthonyw
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: thread
   Version: Boost Development Trunk | Severity: Problem
Resolution: | Keywords:
--------------------------------------+-------------------------------------

Comment (by vleschuk@…):

 I performed few simple tests:

 The samples were compiled by the following command:
 x86_64-w64-mingw32-g++ -I ./boost/svn_74606-win64/include/boost-1_48 -o
 test.exe test.cpp ./boost/svn_74606-win64/lib/libboost_thread-mgw-mt-
 1_48.a

 1)

 int main()
 {
 }

 ok

 2)


 #include <boost/thread.hpp>
 int main()
 {
 }

 ok

 3)

 #include <boost/thread.hpp>
 int main()
 {
         boost::thread thr;
 }

 NOT ok:

 /tmp/ccm0ryQa.o:kk.cpp:(.text+0x17): undefined reference to
 `__imp__ZN5boost6threadC1Ev'
 /tmp/ccm0ryQa.o:kk.cpp:(.text+0x27): undefined reference to
 `__imp__ZN5boost6threadD1Ev'


 Hope this helps...

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/5964#comment:2>
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