[FlopCpp] problem compiling examples

Tim Hultberg Tim.Hultberg at eumetsat.int
Fri May 25 10:08:28 EDT 2007


Yes, I think I'll have to look into the makefile for the examples. To be honest I didnt even know there was a standard coin example makefile.
My system (gmake on linux) does not like line 60 of your attached makefile though.

Tim



>>> Michal Kaut <mail at michalkaut.net> 23/05/2007 14:11 >>>
I have found a way around the problem, by using a Makefile for examples 
in another Coin-OR project. Still do not know why the original does not 
work, though.. But I wander why it can't be the same as in the other 
projects (which works OK).

I am attaching a Makefile that works for (my installation of) 
MinGW+MSYS. Note that to use it, one would have to edit the COININCDIR 
and COINLIBDIR entries.


Regards,
Michal Kaut


Michal Kaut wrote:
> Hello,
> 
> 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.
> 
> The package as such builds OK, including "make test", but when I tried 
> to "make" the examples, none of them compiles (links).
> Is this just me, or is a (known) problem? And if so, is there any 
> (preferably easy) fix?
> 
> These are just the first few error messages I get for "make ampl":
> g++ -g -I../../include -I../include  -L../../lib -L../lib 
> -Wl,-rpath,../../lib -Wl,-rpath,../lib -lFlopCpp -lOsi -lOsiClp -lClp 
> -lOsiCbc -lCbc -lCoinUtils -lCgl  ampl.cpp   -o ampl
> C:/DOCUME~1/kaut/LOCALS~1/Temp/ccQJbaaa.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()'
> 
> I do not how important it is, but the makefile in the "examples" 
> directory includes
> IncDir    += $(FlopcDir)/include
> LIBDIRS += $(FlopcDir)/lib
> None of these directories exist.
> 
> 
> Thanks a lot in advance.
> 
> Regards,
> Michal Kaut
> 
> _______________________________________________
> FlopCpp mailing list
> FlopCpp at list.coin-or.org 
> http://list.coin-or.org/mailman/listinfo/flopcpp




More information about the FlopCpp mailing list