Bonjour,
J'utilise la librairie boost::thread version 1.37.0 pour un projet personnel. J'ai utilisé boost::thread sans aucun problème mais lorsque j'essaie d'utiliser boost::condition_variable j'ai une erreur de link :
Undefined symbols:
"boost::condition_variable::wait(boost::unique_lock<boost::mutex>&)"
"boost::condition_variable::notify_one()"
"boost::condition_variable::notify_all()"
ld: symbol(s) not found
collect2: ld returned 1 exit status
J'utilise Eclipse Version: 3.4.1 sous MacOS X 10.5.8.
g++ -L/Users/user/Documents/Work/C++/boost/lib -o "Test" ./src/Test.o -lboost_thread-xgcc40-mt
Je essayé avec boost::condition_variable_any et dans ce cas la j'ai carrement un erreur de compil :
error: 'condition_variable_any' in namespace 'boost' does not name a type
Avez vous une idée d'où peut venir le problème?
Merci
Partager