由买买提看人间百态

topics

全部话题 - 话题: gcc41
(共0页)
m******h
发帖数: 1059
1
来自主题: Programming版 - boost drives me crazy!! Question!
Hi,
I wanted to use the thread functions of boost,
here is the program
#include
#include
int main()
{
boost::mutex m;
return 0;
}
and I'm using g++ to compile, with these options
-L/root/boost/lib -lboost_thread-gcc41-mt-1_37 -static
The error message is:
undefined reference to `boost::mutex::mutex()'
I actually got the similar problem the day before yesterady for date_time
but the issue was resolved by adding
-lboost_date_time-gcc41-mt-
(共0页)