|
Boost-Build : |
From: Andre Hentz (gclbb-jamboost_at_[hidden])
Date: 2003-03-24 18:45:15
Hi. I've been experimenting with Boost.Build.v2 for a project of mine and
having trouble with searched-lib. Here is a simple test that I built:
toplevel/
project-root.jam
---- | import msvc ; ---- boost-build.jam ---- | boost-build ../tools/boost.build ; # V2 is here! ---- Jamfile ---- | project top; | build-project sub ; ---- sub/ main.cpp Jamfile ---- | project sub ; | lib openssl : : <name>libeay32 <search>c:/openssl/lib ; | exe main : main.cpp openssl ; ---- (Note 1: I'm using link=static) (Note 2: For this test, I don't care about including the openssl headers.) A similar arrangement works find with gcc/freebsd but fails with msvc/win32, msvc/cygwin and gcc/cygwin for different reasons, as follows: gcc/cygwin: c:/openssl/lib is not reconized as an absolute path (the command line ends up containing: -Lsub/c:/openssl/lib). I can easily work around this one by using /cygdrive/c/openssl/lib. msvc/cygwin: error: Unknown target type RSP. I don't really care about this one yet. msvc/win32: warning: Unused source target { openssl.SEARCHED_LIB } Main target is subbug/main This is the one case I care so I went looking for reasons and fixes with no luck. I notice that SEARCHED_LIB cannot be consumed into a RSP so I added it to the NT specific section about RSPs. That didn't work because searched-lib-target has no name (or a related error, can't remember). I'd be glad to do some experiments and try fixes if someone can give guidance. Best regards, Andre Hentz
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