From: quarendont (tomq_at_[hidden])
Date: 2004-12-22 05:41:08
I'm attempting to write a Jamfile for boost.build (version 1 or
version 2). I need to link a DLL with an external library (a boost
library in fact) and can't seem to get the right incantation.
I have the libraries I need to link with in c:\boost\lib (I running
My fist attempt was to use boost.build V2.
In my project I had a Jamfile that looked a bit like
SOURCES = a.cpp ;
lib lib1 : $(SOURCES) : <include>c:\boost\include\boost-1_31 ;
This compiled my sources fine, but obvisouly failed to link. So I
added <search>c:/boost/lib, as in
lib lib1 : $(SOURCES) : <include>c:\boost\include\boost-1_31
This then linked correctly. However, strangely having done a clean, it
wouldn't compile again (jam just did nothing) until I took the
<search> out again.
So this is the first problem. Why does <search> cause a problem like
Having failed with Boost.Build v2, and considering V2 is not yet
complete, I decided to try the same thing with V1. I changed my
Jamfile to (I'm wanting to build a DLL)
dll lib1 : $(SOURCES) : <include>c:\boost\include\boost-1_31
and it doesn't link. The link command doesn't have the c:/boost/lib
directory added as a /LIBPATH option.
How do I do the equivalent of <search> on Boost.Build V1?
Is there any documentation on what "requirements" (if that is the
terminology) are supported and what they do? I can't find any.
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