Here we are. I used some of boost::thread's simpler constructs in my code.
The only command-line argument I can see is -fexceptions, and various optimizations. The build cries this:
Code:
-------------- Build: Release in console1 ---------------
Compiling: main.cpp
[. . . . . .]
Linking console executable: bin/Release/console1
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(mutex.o): In function `boost::try_mutex::do_trylock()':
(.text+0x463): undefined reference to `pthread_mutex_trylock'
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(thread.o): In function `boost::thread::join()':
(.text+0x1b8): undefined reference to `pthread_join'
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(thread.o): In function `boost::thread_group::~thread_group()':
(.text+0x3a5): undefined reference to `pthread_detach'
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(thread.o): In function `boost::thread_group::~thread_group()':
(.text+0x435): undefined reference to `pthread_detach'
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(thread.o): In function `boost::thread_group::join_all()':
(.text+0x4c1): undefined reference to `pthread_join'
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(thread.o): In function `boost::thread::thread(boost::function0<void, std::allocator<boost::function_base> > const&)':
(.text+0x75c): undefined reference to `pthread_create'
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(thread.o): In function `boost::thread::thread(boost::function0<void, std::allocator<boost::function_base> > const&)':
(.text+0x8bc): undefined reference to `pthread_create'
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(thread.o): In function `boost::thread_group::create_thread(boost::function0<void, std::allocator<boost::function_base> > const&)':
(.text+0xa28): undefined reference to `pthread_detach'
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(thread.o): In function `boost::thread::~thread()':
(.text+0x217): undefined reference to `pthread_detach'
../../../../../usr/lib/libboost_thread-gcc42-mt-1_34_1.a(thread.o): In function `boost::thread::~thread()':
(.text+0x237): undefined reference to `pthread_detach'
collect2: ld returned 1 exit status
Process terminated with status 1 (0 minutes, 2 seconds)
10 errors, 10 warnings
So do the libraries have functions that themselves link to the runtime files? Does this all get resolved during the build?