Hi,
I have installed boost on my OS X 10.9.4, and can successfully build executables using some boost libraries, for example <boost/date_time/gregorian/gregorian.hpp>
However, when I try and build including boost/thread.hpp, I get the following link error. My BoostLearner.cpp does nothing more than #include <boost/thread.hpp>
I have checked various forums, but could not see an answer which has solved the issue.
If anybody can help it would be much appreciated. I have it working on my old laptop, but would be good to be able to build on my new one also.
Invoking: MacOS X C++ Linker
g++ -L/opt/local/lib/ -o "BoostLearner" ./src/BoostLearner.o -lboost_thread-mt
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
___cxx_global_var_init2 in BoostLearner.o
"boost::system::generic_category()", referenced from:
___cxx_global_var_init in BoostLearner.o
___cxx_global_var_init1 in BoostLearner.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [BoostLearner] Error 1
Thank you....
I have installed boost on my OS X 10.9.4, and can successfully build executables using some boost libraries, for example <boost/date_time/gregorian/gregorian.hpp>
However, when I try and build including boost/thread.hpp, I get the following link error. My BoostLearner.cpp does nothing more than #include <boost/thread.hpp>
I have checked various forums, but could not see an answer which has solved the issue.
If anybody can help it would be much appreciated. I have it working on my old laptop, but would be good to be able to build on my new one also.
Invoking: MacOS X C++ Linker
g++ -L/opt/local/lib/ -o "BoostLearner" ./src/BoostLearner.o -lboost_thread-mt
Undefined symbols for architecture x86_64:
"boost::system::system_category()", referenced from:
___cxx_global_var_init2 in BoostLearner.o
"boost::system::generic_category()", referenced from:
___cxx_global_var_init in BoostLearner.o
___cxx_global_var_init1 in BoostLearner.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [BoostLearner] Error 1
Thank you....