coin-or / FlopCpp

An open source algebraic modelling language implemented as a C++ class library
https://projects.coin-or.org/FlopC++
Other
10 stars 1 forks source link

problem compiling examples on Windows with MinGW + MSYS #16

Open svigerske opened 5 years ago

svigerske commented 5 years ago

Issue created by migration from Trac.

Original creator: mkaut

Original creation time: 2007-05-10 00:02:14

Assignee: somebody

Version:

I have a problem building the examples, using https://projects.coin-or.org/svn/FlopC++/stable/1.0 on Windows XP with MinGW (gcc 3.4.5) and MSYS. I also tried /releases/1.0.1 (rev. 136), with the same results.

The package as such builds OK, including "make test" and "make install", but when I tried to "make" any of the examples, none of them compiles/links.

As an example, these are the first error messages I get for "make ampl":

Wl,-rpath,../lib -lFlopCpp -lOsi -lOsiClp -lClp -lOsiCbc -lCbc -lCoinUtils -lCgl  ampl.cpp   -o ampl
C:/DOCUME~1/kaut/LOCALS~1/Temp/ccEFcaaa.o: In function `main':c:/Appl/Math/Coin-OR/coin-FlopCpp/FlopCpp/examples/ampl.cpp:13: undefined reference to `flopc::MP_model::getDefaultModel()'
:c:/Appl/Math/Coin-OR/coin-FlopCpp/FlopCpp/examples/ampl.cpp:14: undefined reference to `OsiClpSolverInterface::OsiClpSolverInterface()'
:c:/Appl/Math/Coin-OR/coin-FlopCpp/FlopCpp/examples/ampl.cpp:14: undefined reference to `OsiCbcSolverInterface::OsiCbcSolverInterface(OsiSolverInterface*, CbcStrategy*)'
:c:/Appl/Math/Coin-OR/coin-FlopCpp/FlopCpp/examples/ampl.cpp:27: undefined reference to `flopc::MP_set::getEmpty()'
:c:/Appl/Math/Coin-OR/coin-FlopCpp/FlopCpp/examples/ampl.cpp:27: undefined reference to `flopc::MP_set::getEmpty()'
:c:/Appl/Math/Coin-OR/coin-FlopCpp/FlopCpp/examples/ampl.cpp:27: undefined reference to `flopc::MP_set::getEmpty()'
:c:/Appl/Math/Coin-OR/coin-FlopCpp/FlopCpp/examples/ampl.cpp:27: undefined reference to `flopc::MP_set::getEmpty()'
:c:/Appl/Math/Coin-OR/coin-FlopCpp/FlopCpp/examples/ampl.cpp:28: undefined reference to `flopc::MP_set::getEmpty()'
C:/DOCUME~1/kaut/LOCALS~1/Temp/ccEFcaaa.o:c:/Appl/Math/Coin-OR/coin-FlopCpp/FlopCpp/examples/ampl.cpp:28: more undefined references to `flopc::MP_set::getEmpty()' follow

Thanks a lot in advance.

Regards, Michal