|
Boost-Build : |
From: Roland Schwarz (roland.schwarz_at_[hidden])
Date: 2006-09-19 16:59:27
I've got a problem with <library-file> on MSVC compilers.
In my Jamfile.v2 I have:
lib boost_thread_pthread
: ## sources ##
pthread/thread.cpp
pthread/mutex.cpp
pthread/condition.cpp
pthread/exceptions.cpp
pthread/xtime.cpp
: ## requirements ##
<include>"C:/Program Files/ptw32/Pre-built.2/include"
<library-file>"C:/ProgramFiles/ptw32/Pre-built.2/lib/pthreadVC2.lib"
<define>BOOST_THREAD_POSIX
<thrd-api>pthread
However the build fails with:
LINK : fatal error LNK1104: cannot open file
'<plibs/thread/src>C:\Program.obj'
I have been looking into the respective rsp file which reads:
"bin.v2\libs\thread\build\msvc-7.1\debug\thrd-api-pthread\threading-multi\thread.obj"
"bin.v2\libs\thread\build\msvc-7.1\debug\thrd-api-pthread\threading-multi\mutex.obj"
"bin.v2\libs\thread\build\msvc-7.1\debug\thrd-api-pthread\threading-multi\condition.obj"
"bin.v2\libs\thread\build\msvc-7.1\debug\thrd-api-pthread\threading-multi\exceptions.obj"
"bin.v2\libs\thread\build\msvc-7.1\debug\thrd-api-pthread\threading-multi\xtime.obj"
<plibs/thread/src>C:\Program Files\ptw32\Pre-built.2\lib\pthreadVC2.lib
The last line obviously beeing wrong.
I am hoping that someone more knowledgeable with boost.build v2 can tell
me what possibly might be wrong. I am aware that the above might not be
easily reproducable without checking out the thread_rewrite branch.
If needed to further diagnose the problem I will try to set up a
separate project file.
Thank you for help,
Roland
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk