Boost logo

Boost-Build :

Subject: [Boost-build] MSVC resource compiler problem
From: Ian Emmons (iemmons_at_[hidden])
Date: 2009-02-18 10:43:41


I have a very simple jam file (see below) that fails with the error
message shown at the bottom of this message. If I remove the line
"<toolset>msvc:<source>Version.rc", then this builds perfectly,
except, of course, that the resources are not linked into the
executable. What am I doing wrong?

Thanks,

Ian

=== Jam File ============================

project /KB/AdminClient ;

exe ParliamentAdmin
    : [ glob *.cpp ]
       /KB/KbCore//Parliament
    : <include>.
       <toolset>msvc:<source>Version.rc
    : # default build
    : # usage requirements
    ;

=== Error Message ============================

msvc.link ..\..\target\bin\native\Parliament\AdminClient
\msvc-9.0\release\address-model-64\threading-multi\ParliamentAdmin.exe
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
..\..\target\bin\native\Parliament\AdminClient\msvc-9.0\release
\address-model-64\threading-multi\KbAdmin.obj : fatal error LNK1112:
module machine type 'x64' conflicts with target machine type 'X86'


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