[BuildTools-tickets] [BuildTools] #76: several public headers mess with user's projects
BuildTools
coin-trac at coin-or.org
Sat May 1 05:13:32 EDT 2010
#76: several public headers mess with user's projects
-------------------+--------------------------------------------------------
Reporter: bubla | Owner: andreasw
Type: defect | Status: new
Priority: major | Component: configuration tests
Version: 0.5 | Keywords:
-------------------+--------------------------------------------------------
Comment(by stefan):
The reason for the #undef's is that each COIN-OR project has it's own
config_xxx.h file, but a higher level project may need to read the
configuration of the lower level project by including it's config_xxx.h
file. Thus, there are wrappers XXXConfig.h which include the actual
config_xxx.h and undefine macros that are common among different
config_xxx.h files (and they define some macros to default values in case
one builds without autotools).
Unfortunately, it does not always seem possible to avoid that a public
header of a project includes its config_xxx.h file (well, at least in my
case it may be lazyness ;-)). The easy workaround is to include the
XXXConfig.h file before your config_xxx.h file, if possible.
I do not see a possible fix for all projects. If you think that a
particular project (e.g., Osi), could make it's inclusions of XXXConfig.h
private, then I suggest to submit a ticket there, preferably with a patch
file included :-).
Anyway, thanks for pointing this out. I leave the ticket open since it is
surely something to work on.
Stefan
--
Ticket URL: <https://projects.coin-or.org/BuildTools/ticket/76#comment:1>
BuildTools <http://projects.coin-or.org/BuildTools>
Tools for configuring and compiling COIN-OR codes
More information about the BuildTools-tickets
mailing list