Boost logo

Boost-Build :

Subject: Re: [Boost-build] MSVC resource compiler problem
From: Ian Emmons (iemmons_at_[hidden])
Date: 2009-02-18 16:44:12


On Feb 18, 2009, at 3:50 PM, Phillip Seaver wrote:

> Juergen Hunold wrote:
>> Hi Ian !
>>> 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.
>>
>
> I'll bet he does for the same reason I do -- that is, .rc files are
> platform-specific files, therefore I assumed that toolsets other than
> msvc wouldn't know what to do with them.
>
> I can't find anything in the documentation that explicitly says that,
> either. The comment inside gcc.jam says it, but I don't usually go
> through the code unless I need something. :->
>
> Phillip

I actually guessed that all the non-Microsoft toolsets would simply
ignore an RC file in the sources, but it turns out that the darwin
toolset (Macintosh) fails if you put an RC file in the sources list.

As soon as I have a chance, I will work up a simple test case and send
it in.

Thanks,

Ian


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