Changes between Initial Version and Version 8 of Ticket #4878
- Timestamp:
- Aug 15, 2012, 9:02:22 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #4878
- Property Cc added
-
Ticket #4878 – Description
initial v8 1 1 test.cpp: 2 3 {{{ 2 4 #include <boost/thread.hpp> 3 5 int main() … … 6 8 boost::posix_time::milliseconds(50) ); 7 9 } 10 }}} 8 11 12 13 14 {{{ 9 15 g++ -lboost_thread-mt: 10 16 In file included from C:/boost/include/boost-1_45_0/boost/thread/win32/thread_data.hpp:12:0, … … 18 24 C:\DOCUME~1\ADMINI~1\USTAWI~1\Temp\ccW8Zsal.o:test.cpp:(.text$_ZN5boost11this_thread18interruptible_waitERKNS_10posix_time5ptimeE[boost::this_thread::interruptible_wait(boost::posix_time::ptime const&)]+0x37): undefined reference to `_imp___ZN5boost11this_thread18interruptible_waitEPvNS_6detail7timeoutE' 19 25 collect2: ld returned 1 exit status 26 }}} 27 20 28 21 29 I have fixed this, but I do not know, if it is the right way: 22 30 boost/thread/detail/config.hpp line 40: 31 32 {{{ 23 33 # if defined(BOOST_MSVC) || defined(BOOST_INTEL_WIN) || \ 24 34 ( __GNUC__ >= 4 && __GNUC_MINOR >= 5 ) 35 }}} 36 25 37 26 38 This fix gets rid of the link error, and the earlier warning.