newmat10-dev installs SickConfig.h and includes it in the headers which can cause conflicts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
newmat (Ubuntu) |
Fix Released
|
Undecided
|
Philippe Coval |
Bug Description
Binary package hint: libnewmat10-dev
I'm using the package libnewmat10-dev 1.10.4-2build1 and have run into a problem compiling against it. The problem stems from the inclusion of config.h into the installed headers. (Line 10 of include.h) This was discovered as a problem when I had another gnu autotools install that installed and included it's own config.h. The names didn't conflict since they were in subdirctories, but the #defines did and prevented compilation.
It is my impression that the config.h is only necessary for compiling the library and not for compiling programs to link against the library, for if they need it they will have their own config.h which will be generated with it's own configure script.
If possible I would like to remove line 10 of include.h and possibly not have config.h included in the package installation. I have commented out line 10 in my installed version and everything compiles. This either needs to be done after compiling the library since the library needs the config.h. Another solution that is more work, but wouldn't require modifying things after compile is to include config.h in the cpp files instead of the header files so that it will not be included by external programs using newmat headers.
I"m running Gutsy 7.10.
Related branches
Changed in newmat: | |
assignee: | nobody → rzr |
Changed in newmat: | |
status: | New → Fix Released |
Hi,
I am preparring a new version for debian, can you check if it's ok for you ? mentors. debian. net/debian/ pool/main/ n/newmat/
http://
the compiled package is in my PPA, are you still using gutsy ?
http:// rzr.online. fr/q/apt
Regards