Couenne
Couenne copied to clipboard
compilation errors: BONMINLIB_EXPORT and bad ld name
When I try to compile Couenne I get this error:
./../src/main/CouenneBab.cpp:45:8: error: ‘BONMINLIB_EXPORT’ does not name a type; did you mean ‘COUENNELIB_EXPORT’?
45 | extern BONMINLIB_EXPORT Bonmin::OACutGenerator2 *currentOA; // pointer to the OA generator
My OS is a fairly recent version of Manjaro. Also, the build file should specify the required C++ standard. There are a lot of warnings when compiling with C++17 (the default on my machine). If I switch the export macro to the suggested one, it still doesn't fully compile for me. It fails at the very end with this error:
...
CXX main/CouenneBab.lo
CXX main/BonCouenneSetup.lo
CXX main/SmartAslDestr.lo
CXXLD libCouenne.la
make[2]: Leaving directory '/home/brannon/Downloads/Couenne/build/src'
make[1]: Leaving directory '/home/brannon/Downloads/Couenne/build/src'
Making all in src/main
make[1]: Entering directory '/home/brannon/Downloads/Couenne/build/src/main'
CXX BonCouenne.o
CXXLD couenne
/usr/bin/ld: cannot find ../.libs/libCouenne.so: No such file or directory
collect2: error: ld returned 1 exit status