Re: boost library, hardtolink&compile, plz help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



dear Jeff or gnu g++ programers:
  I tried your suggestion(maybe I am not figure your words correctly, then why not
using command rather than English)
-------
eric@eric-laptop:~/cppcookbook$ g++ -I/home/eric/boost1/boost_1_46_1/ example12-1.cpp -Lboost_thread-mt
/tmp/cceCvYRC.o: In function `main':
example12-1.cpp:(.text+0x30): undefined reference to `boost::thread::join()'
example12-1.cpp:(.text+0x3c): undefined reference to `boost::thread::~thread()'
example12-1.cpp:(.text+0x5a): undefined reference to `boost::thread::~thread()'
/tmp/cceCvYRC.o: In function `boost::detail::thread_data_base::thread_data_base()':
example12-1.cpp:(.text._ZN5boost6detail16thread_data_baseC2Ev[boost::detail::thread_data_base::thread_data_base()]+0x1b): undefined reference to `vtable for boost::detail::thread_data_base'
/tmp/cceCvYRC.o: In function `boost::thread::yield()':
example12-1.cpp:(.text._ZN5boost6thread5yieldEv[boost::thread::yield()]+0x7): undefined reference to `boost::this_thread::yield()'
/tmp/cceCvYRC.o: In function `boost::thread::thread<MyThreadFunc>(MyThreadFunc, boost::disable_if<boost::is_convertible<MyThreadFunc&, boost::detail::thread_move_t<MyThreadFunc> >, boost::thread::dummy*>::type)':
example12-1.cpp:(.text._ZN5boost6threadC1I12MyThreadFuncEET_NS_10disable_ifINS_14is_convertibleIRS3_NS_6detail13thread_move_tIS3_EEEEPNS0_5dummyEE4typeE[boost::thread::thread<MyThreadFunc>(MyThreadFunc, boost::disable_if<boost::is_convertible<MyThreadFunc&, boost::detail::thread_move_t<MyThreadFunc> >, boost::thread::dummy*>::type)]+0x21): undefined reference to `boost::thread::start_thread()'
/tmp/cceCvYRC.o: In function `boost::detail::thread_data<MyThreadFunc>::~thread_data()':
example12-1.cpp:(.text._ZN5boost6detail11thread_dataI12MyThreadFuncED1Ev[boost::detail::thread_data<MyThreadFunc>::~thread_data()]+0x16): undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
/tmp/cceCvYRC.o: In function `boost::detail::thread_data<MyThreadFunc>::~thread_data()':
example12-1.cpp:(.text._ZN5boost6detail11thread_dataI12MyThreadFuncED0Ev[boost::detail::thread_data<MyThreadFunc>::~thread_data()]+0x16): undefined reference to `boost::detail::thread_data_base::~thread_data_base()'
/tmp/cceCvYRC.o:(.rodata._ZTIN5boost6detail11thread_dataI12MyThreadFuncEE[typeinfo for boost::detail::thread_data<MyThreadFunc>]+0x8): undefined reference to `typeinfo for boost::detail::thread_data_base'
collect2: ld returned 1 exit status
eric@eric-laptop:~/cppcookbook$ 
------------------------------------
it is not work
so, plz help or any detailed suggestion/hint, thanks a lot in advance, Eric


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux