Non je n'ai pas encore essayer de les compiler, voici les erreurs que j'ai:
Sous linux:
root@manu manu # g++ -I /home/manu/boost_1_30_0 thread.cpp
/tmp/ccWAbAOa.o(.text+0x76): In function `main':
: undefined reference to `boost::thread::thread[in-charge](boost::function0<void, std::allocator<boost::function_base> > const&)'
/tmp/ccWAbAOa.o(.text+0xad): In function `main':
: undefined reference to `boost::thread::join()'
/tmp/ccWAbAOa.o(.text+0xc0): In function `main':
: undefined reference to `boost::thread::~thread [in-charge]()'
/tmp/ccWAbAOa.o(.text+0xd9): In function `main':
: undefined reference to `boost::thread::~thread [in-charge]()'
/tmp/ccWAbAOa.o(.gnu.linkonce.t._ZN12thread_alarmclEv+0x15): In function `thread_alarm::operator()()':
: undefined reference to `boost::xtime_get(boost::xtime*, int)'
/tmp/ccWAbAOa.o(.gnu.linkonce.t._ZN12thread_alarmclEv+0x34): In function `thread_alarm::operator()()':
: undefined reference to `boost::thread::sleep(boost::xtime const&)'
collect2: ld returned 1 exit status
SOus win avec VS.NET:
boost2 error LNK2001: symbole externe non résolu "int __cdecl boost::xtime_get(struct boost::xtime *,int)" (?xtime_get@boost@@$$FYAHPAUxtime@1@H@Z)
boost2 error LNK2001: symbole externe non résolu "public: __thiscall boost::thread::~thread(void)" (??1thread@boost@@$$FQAE@XZ)
boost2 error LNK2001: symbole externe non résolu "public: __thiscall boost::thread::~thread(void)" (??1thread@boost@@QAE@XZ)
boost2 error LNK2001: symbole externe non résolu "public: static void __cdecl boost::thread::sleep(struct boost::xtime const &)" (?sleep@thread@boost@@$$FSAXABUxtime@2@@Z)
boost2 error LNK2001: symbole externe non résolu "public: __thiscall boost::thread::thread(class boost::function0<void,int> const &)" (??0thread@boost@@$$FQAE@ABV?$function0@XH@1@@Z)
boost2 error LNK2001: symbole externe non résolu "public: void __thiscall boost::thread::join(void)" (?join@thread@boost@@$$FQAEXXZ)
boost2 fatal error LNK1120: 6 externes non résolus
Apparement il s'agit du meme prob dans les 2 cas pourtant il trouve bien les fichier header....
Message édité par djmanu22 le 04-05-2003 à 14:17:12