m******h 发帖数: 1059 | 1 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- |
|