Boost logo

Boost-Build :

From: David Abrahams (gclbb-jamboost_at_[hidden])
Date: 2003-07-22 20:50:30


Dirk Griffioen <d.griffioen_at_[hidden]> writes:

> Hi,
>
> If I do something like <linkflags>"/NODEFAULTLIB:libcd" inside a template
> definition it ends up on the commandline like \NODEFAULTLIB:libcd - this is
> a problem beacause now the linker thinks it's a library ("\/" does not
> help). (This is for vc7 with buildsystem v1.)

Try

<linkflags>-NODEFAULTLIB:libcd

instead.

> And secondly - is there a way to create a rule that calls a source generator
> - say gsoap - to create a file soapClient.cpp on which a target dependends:
>
> #the jamfile:
>
> gsoap bla.hpp ; #bla.hpp has defs the soap compiler understands
>
> exe cl : <template>executable cl.cpp soapClient.cpp <lib>soap ;
>
> #the rule somewhere in a included my.rule.jam:
> soapcompiler ?= V:\\gsoap-win32-2.2.3\\soapcpp2.exe ;
>
> rule gsoap ( header )
> {
> gsoap-action $(header) ;
> }
>
> actions gsoap-action
> {
> $(soapcompiler) $(<)
> }
>
> but nothing happens :-(
>
> which confuses me because all html pages I consulted where quite "you can do
> this" - and creating a generator is one off I feel (I do not understand it
> and there's no vc7 - yet - in v2.)

v2 supports all versions of msvc. I have:

using msvc : 6.5 ;
using msvc : 7 ;
using msvc : 7.1 ;
using gcc : 3.2 ;
using borland : : c:/tools/Borland/bcc55 ;

in my site-config.jam.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com
 

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