Boost logo

Boost :

From: Gaetano Mendola (mendola_at_[hidden])
Date: 2002-05-17 16:12:55


Hi to all,

I downloaded end extracted boost library to c:\boost_1_28_0

I compiled all with :

bjam "-sTOOLS=msvc"
         "-sMSVC_ROOT=c:\Program Files\Microsoft Visual Studio\VC98"
         "-sVISUALC=c:\Program Files\Microsoft Visual Studio\VC98"

all was working fine.

When I try to use the thread library in a project
"Dialog Based" I got this error in linking fase:

Linking...
Linking...
OSToken.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::thread::~thread(void)" (??1thread_at_boost@@QAE_at_XZ)
OSToken.obj : error LNK2001: unresolved external symbol "public: __thiscall
boost::thread::thread(void)" (??0thread_at_boost@@QAE_at_XZ)
Debug/OSToken.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

OSToken.exe - 3 error(s), 0 warning(s)

and I added also the libbost_thread.lib in my project.

the code where I use the thread class is:

......
boost::thread myThread;
.......

I tryed another way : I add the obj file ( without the library):
thread.obj
mutex.obj
condition.obj
xtime.obj
exception.obj

and I had no linking problems!!!!

Is this correct ?

Ciao
Gaetano

--
#exclude <windows>
#include <CSRSS>
printf("\t\t\b\b\b\b\b\b");.
printf("\t\t\b\b\b\b\b\b");

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk