Boost logo

Boost-Build :

Subject: Re: [Boost-build] MSVC resource compiler problem
From: Juergen Hunold (juergen.hunold_at_[hidden])
Date: 2009-02-18 15:02:00


Hi Ian !

On Wednesday 18 February 2009, Ian Emmons wrote:
> Sorry, I forgot to mention that I'm using bjam 3.1.17 and the version
> of boost.build from boost 1.38.0.

Good so far.

> 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?

First, why do you use this workaround ? At least for gcc, .rc files
should be processed by a null action, so adding "Version.rc" to the
source list should work. If this does not work for one of your
platform, please tell us which.

> === Jam File ============================
>
> project /KB/AdminClient ;
>
> exe ParliamentAdmin
>
> : [ glob *.cpp ]
>
> /KB/KbCore//Parliament

What is in this ? Does it work with a minimal testcase (one .cpp and a
.rc file ?

> : <include>.
>
> <toolset>msvc:<source>Version.rc
>
> : # default build
> : # usage requirements
>
> ;

Else good so far.

> === Error Message ============================
>
> msvc.link ..\..\target\bin\native\Parliament\AdminClient
> \msvc-9.0\release\address-model-64\threading-multi\ParliamentAdmin.ex
>e 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'

Please provide the exact command line next time. This looks like a x64
build with address-model=64.

A runnable test case (as stated above) would be helpful.

I'm sorry, but without something I can extract and run, I'm out of
thoughts...

Yours,

Jürgen

-- 
* Dipl.-Math. Jürgen Hunold       ! Ingenieurgesellschaft für 
* voice: ++49 511 262926 57       ! Verkehrs- und Eisenbahnwesen mbH  
* fax  : ++49 511 262926 99       ! Lister Straße 15
* juergen.hunold_at_[hidden]        ! www.ivembh.de
* 
* Geschäftsführer:                ! Sitz des Unternehmens: Hannover
* Prof. Dr.-Ing. Thomas Siefer    ! Amtsgericht Hannover, HRB 56965
* PD Dr.-Ing. Alfons Radtke       !

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