Impossible to include an osi header
Bug #520538 reported by
christophe-marie
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
coinor-osi (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Release: 9.10
On package: coinor-libosi-dev
Steps to reproduce:
- install coinor-libosi-dev
- install the g++ compiler
Try to compile the following example:
$ cat test.cpp
#include <coin/OsiSolver
int main (int argc, char ** argv)
{
return 0;
}
$ g++ test.cpp -o test
You'll get a bunch of errors.
The same example compiles nicely on my archlinux laptop.
I have no special settings, I do not override PATH nor LD_LIBRARY_PATH or any other variable (I did this test with a clean "just installed" distro).
To post a comment you must log in.
For the users getting the same problem, installing osi from their svn repository temporarily solves this issue (be careful, their configure scripts are ugly and almost force you to install it locally. You should avoid trying to fight these scripts and install it locally using --prefix=$OSI_HOME, OSI_HOME being the directory where you downloaded osi - most likely ~/coin-osi if you followed the instructions of their website) and add the options "-I $OSI_HOME/include -L$OSI_HOME/lib -lOsi -lCoinUtils" to your g++ compilation options.