[Coin-discuss] name clashes in preprocessor directives
Andreas Waechter
andreasw at watson.ibm.com
Fri Feb 22 09:27:08 EST 2008
Hi,
> You should not include config_coinutils.h directly. You should include
> CoinUtilsConfig.h and that'll take care of the appropriate undef's.
This would only help if you include your own config.h header after any of
the COIN headers. Probably this is not the way you want to use it, since
one typically includes one's own config.h very early since it contains all
the configuration information. In that case, you will have to undefine
the macros that are defined in YOUR config.h, since they will otherwise
clash with the COIN ones.
Cheers,
Andreas
>
> --Laci
>
> On Fri, 22 Feb 2008, Tuomo Takkula wrote:
>
>> Hi,
>>
>> in a project where we use Coin we include headers which leads to name clashes at the following
>> preprocessor directives:
>>
>> coin-Cbc/include/coin/config_coinutils.h:121:1: warning: "PACKAGE"
>> coin-Cbc/include/coin/config_coinutils.h:124:1: warning: "PACKAGE_BUGREPORT"
>> coin-Cbc/include/coin/config_coinutils.h:127:1: warning: "PACKAGE_NAME"
>> coin-Cbc/include/coin/config_coinutils.h:130:1: warning: "PACKAGE_STRING"
>> coin-Cbc/include/coin/config_coinutils.h:133:1: warning: "PACKAGE_TARNAME"
>> coin-Cbc/include/coin/config_coinutils.h:136:1: warning: "PACKAGE_VERSION"
>> coin-Cbc/include/coin/config_coinutils.h:154:1: warning: "VERSION"
>>
>> The clashes stem from the fact that we are using Coin in a automake/autoconf environment ourselves.
>> Is there a way to get rid of those, maybe by the use of some prefix in the call of configure?
>>
>> Cheers
>> Tuomo Takkula
>>
>> _______________________________________________
>> Coin-discuss mailing list
>> Coin-discuss at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/coin-discuss
>>
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>
More information about the Coin-discuss
mailing list