[Cbc] COIN_HAS_CLP undefined in SVN trunk version

Ted Ralphs ted at lehigh.edu
Thu Aug 11 20:03:49 EDT 2011


Just to add a few more details, the goal of the change Stefan is
referring to was to avoid installing the automatically generated
configuration header produced by autoconf, which we had previously
done, because that header contains a lot of symbols that are only
meant for internal use during the build and should not be exported. To
avoid conflicts with symbols in other projects, we had previously used
an ugly workaround in which we undefined certain symbols. Now that has
all been cleaned up.

The configuration header now only contains a small number of symbols
that we thought would be useful in linking to Cbc. It is debatable
what symbols should be exported, however, so we welcome feedback. We
thought that symbols such as COIN_HAS_CLP would not need to be
exported, since calling Cbc does not usually require knowing what LP
solver it is using underneath. The examples in the Cbc directory, for
instance, only include the public header file for Cbc and call and
link to the installed Cbc library without the need for additional
symbols.  You can find out what LP solver Cbc is linked to by looking
at the pkg-config file or the cbc_addlibs.txt file if you need to.

As I said, this is all open to refinement. If you can provide a use
case where symbols that are no longer exported are required in an
application, we can revisit this and them back on a case-by-case
basis.

Cheers,

Ted

On Thu, Aug 11, 2011 at 5:09 PM, Stefan Vigerske
<stefan at math.hu-berlin.de> wrote:
> Hi,
>
> it's not a bug.
> With Cbc 2.8, we changed the way how the configuration header files are
> handled. They define a lot of symbols that are used only to build the
> corresponding package, but should not be made visible for a user. So the
> installed header files only contain a few defines which names are
> specific to the package.
> COIN_HAS_CLP is obviously one of these private symbols.
>
> Stefan
>
>> Hi,
>>
>> I noticed that COIN_HAS_CLP became undefined in the latest SVN trunk
>> version (-r1799) of CBC. Is there any particular reason for that? Or
>> simply a bug?
>>
>> Regards,
>> Alpár
>>
>> _______________________________________________
>> Cbc mailing list
>> Cbc at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/cbc
>
> _______________________________________________
> Cbc mailing list
> Cbc at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/cbc
>



-- 
Dr. Ted Ralphs
Associate Professor, Lehigh University
(610) 628-1280
ted 'at' lehigh 'dot' edu
coral.ie.lehigh.edu/~ted




More information about the Cbc mailing list