Boost logo

Boost :

Subject: Re: [boost] [predef] Boost build errors using predef-check
From: Edward Diener (eldiener_at_[hidden])
Date: 2015-05-04 13:38:41


On 5/4/2015 1:04 PM, Rene Rivera wrote:
> On Mon, May 4, 2015 at 11:57 AM, Edward Diener <eldiener_at_[hidden]>
> wrote:
>
>> On 5/4/2015 11:23 AM, Steven Watanabe wrote:
>>
>>> AMDG
>>>
>>> On 05/03/2015 10:42 PM, Edward Diener wrote:
>>>
>>>> In my jam file I have:
>>>>
>>>> import ../../predef/check/predef
>>>> : check require
>>>> : predef-check predef-require ;
>>>>
>>>> and in the requirments section of various Boost Build built-in rules I
>>>> have:
>>>>
>>>> [ predef-check "BOOST_COMP_GNUC >= 4.3" : <cxxflags>-std=c++0x ]
>>>>
>>>> When I try to process my jamfile I get numerous warnings along the line
>>>> of:
>>>>
>>>>
>>>>> C:/Programming/VersionControl/modular-boost/libs/vmd/test\../../predef/check/pre
>>>>>
>>>>> def.jam:61: in predef-check
>>>>> warning: object is empty
>>>>> <snip>
>>>>>
>>>>
>>>> Any ideas of what is wrong ?
>>>>
>>>>
>>> The signature of predef.check is
>>>
>>> rule check ( expressions + : language ? : true-properties * :
>>> false-properties * )
>>>
>>> You're skipping the 'language' argument.
>>> If you leave it blank it defaults to cpp.
>>>
>>> The error is on the line:
>>> local exe_target = [ $(_check_exe_($(language))).name ] ;
>>>
>>
>> You are correct.
>>
>> I now tried, for a 'run' rule within an 'alias':
>>
>> [ run test_after_array_elem.cpp : : : [ predef-check "BOOST_COMP_GNUC" >=
>> 4.3 : : <cxxflags>-std=c++0x ] ]
>>
>> Only to receive:
>>
>> Jamfile.v2:52: syntax error at keyword ]
>
>
> ===
> [ run test_after_array_elem.cpp : : : [ predef-check "BOOST_COMP_GNUC >=
> 4.3" : : <cxxflags>-std=c++0x ] ]
>
> The predef condition needs to be quoted as a single arg.

Thanks ! Can I offer senility as an excurse <g> ?


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk