Boost logo

Boost-Build :

From: DJB (usrlocalinfo_at_[hidden])
Date: 2005-01-29 09:43:29


I'm getting the following error message when I try to compile with
msvc-7.1 (MS VC++ Toolkit 2003):

error: When several names are given to the 'lib' rule
error: it's not allows to specify sources or requirements.

Is there a way to fix the error without individually defining each lib
that is listed in WIN32BASE and WIN32GUI? The value of MSSDK_LIB is MS
Platform SDK's lib directory.

### (shared .jam included by most Jamfiles)
# define WIN32BASE and WIN32GUI
WIN32BASE = Advapi32 Kernel32 ;
WIN32GUI = User32 GDI32 Shell32 Winspool WSock32 ComCtl32 ComDlg32
Version Uuid Ole32 ;

### the Jamfile for the custom dll
# inherits MSSDK_LIB, OUTPUT_DIR, etc. from parent dir's Jamfile
project myDll
: requirements
<user-interface>gui
;

lib $(WIN32BASE) : : <search>"$(MSSDK_LIB)" ;
lib $(WIN32GUI) : : <search>"$(MSSDK_LIB)" ;

stage bin
: myDll
: <toolset>msvc,<variant>debug:<location>$(OUTPUT_DIR)
<toolset>msvc,<variant>release:<location>$(OUTPUT_DIR)
<traverse-dependencies>on <include-type>SHARED_LIB
;

lib myDll
: [ glob *.cpp ] [ glob *.h ] [ glob *.rc ]
../someLib//someLib ..//anotherLib
$(WIN32BASE) $(WIN32GUI)
:
;

 


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