|
Boost-Build : |
From: Daniel Lidström (daniel.lidstrom_at_[hidden])
Date: 2006-10-16 09:22:12
Hi!
How do I link against a system library, depending on toolset? Here's my
attempt:
# main library target ################################################
lib GFL-1
# sources ############################################################
: GFL/GFL.cpp
<toolset>msvc:<name>WS2_32.lib # link with WS2_32.lib if msvc
# requirements #######################################################
:
;
This causes an error:
C:\projects\SVN\GFL\trunk\>
: bjam msvc-7.1 -q -oupdates.txt
C:/projects/SVN/Vendor/boost-build/build\targets.jam:1044: in
basic-target.__init__ from module object(typed-target)@75
error: gristed element in sources for ./GFL-1
C:/projects/SVN/Vendor/boost-build/build\targets.jam:1331: in
object(typed-target)@75.__init__ from module object(typed-target)@75
C:/projects/SVN/Vendor/boost-build/kernel\class.jam:92: in new from module
class
C:/projects/SVN/Vendor/boost-build/tools\builtin.jam:535: in lib from module
builtin
Jamroot:92: in modules.load from module Jamfile</C:/projects/SVN/GFL/trunk>
C:/projects/SVN/Vendor/boost-build/build\project.jam:312: in load-jamfile
from module project
C:/projects/SVN/Vendor/boost-build/build\project.jam:68: in load from module
project
C:/projects/SVN/Vendor/boost-build/build\project.jam:170: in project.find
from module project
C:/projects/SVN/Vendor/boost-build\build-system.jam:148: in load from module
build-system
C:\projects\SVN\GFL\trunk\..\..\Vendor\boost-build/kernel\modules.jam:261:
in import from module modules
C:\projects\SVN\GFL\trunk\..\..\Vendor\boost-build/kernel/bootstrap.jam:132:
in boost-build from module
C:\projects\SVN\GFL\trunk\boost-build.jam:1: in module scope from module
What does 'gristed element' mean?
I have a lot of aliases. Is it possible to put system library dependencys
with the alias, instead of,
as in my case, the main library target?
Hälsningar,
Daniel
SBG AB
Phone: +4687112090
Fax : +4687112098
Location:
59 14'10" N
18 00'09" E
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