[Coin-lpsolver] Re: Compilation problem for clp

Samik Raychaudhuri samik at freeshell.org
Sat Dec 3 01:42:33 EST 2005


Thanks John. It worked after I removed the dir you mentioned.
But before that I tried for an hour to make it work with glpk, but I 
couldn't. I even specified the glpk include directory in 
Clp/test/Makefile.test to get the following command:

Creating clp
g++  -I- -Wall -Wpointer-arith -Wcast-qual -Wwrite-strings -Wconversion 
-pipe -g  -I. -DCOIN_USE_CLP 
-I/cygdrive/d/MyWorld/ORPackages/COIN/Clp/include 
-I/cygdrive/d/MyWorld/ORPackages/COIN/include 
-I/cygdrive/d/MyWorld/ORPackages/glpk-4.8/include  -o CYGWIN-g/clp 
CYGWIN-g/ClpMain.o CYGWIN-g/CbcOrClpParam.o CYGWIN-g/unitTest.o 
CYGWIN-g/MyMessageHandler.o CYGWIN-g/MyEventHandler.o 
-L/cygdrive/d/MyWorld/ORPackages/COIN/lib 
-L/cygdrive/d/MyWorld/ORPackages/COIN/lib 
-L/cygdrive/d/MyWorld/ORPackages/glpk-4.8/src  -lClp -lCoin  -lm

I also tried adding -DCOIN_USE_GMPL here, but with the same result.
I corsschecked to make sure that 
"/cygdrive/d/MyWorld/ORPackages/glpk-4.8/include" does indeed have 
glpmpl.h, and glpk-4.8/src has libglpk.a.

Any other pointers?

Regards,
-Samik

On 12/2/2005 11:42 AM, John J Forrest wrote:

>
> Samik,
>
> Another administrator seems to have done something about this post but 
> your message has not yet appeared.
>
> So....
>
> Are you sure you had glpk commented out when you started compiling? 
>  For CoinMpsIO.cpp to compile and want those references you must have 
> had glpmpl.h on your system and COIN_USE_GMPL must have been defined 
> in Coin/Makefile.  The make procedure is not good enough to realize 
> that you have commented out gmpl usage in Makefile.location and so 
> Coin/Makefile has implicitly changed and so it should recompile 
> CoinMpsIO.cpp.
>
> Try removing Coin/CYGWIN-g/CoinMpsIO.o and doing another make
>
> John Forrest
>
>
> *coin-lpsolver-owner at list.coin-or.org*
> Sent by: mailman-bounces at list.coin-or.org
>
> 12/02/2005 11:40 AM
>
> 	
> To
> 	coin-lpsolver-owner at list.coin-or.org
> cc
> 	
> Subject
> 	Coin-lpsolver post from samik at freeshell.org requires approval
>
>
>
> 	
>
>
>
>
>
> As list administrator, your authorization is requested for the
> following mailing list posting:
>
>    List:    Coin-lpsolver at list.coin-or.org
>    From:    samik at freeshell.org
>    Subject: Compilation problem for clp
>    Reason:  Post by non-member to a members-only list
>
> At your convenience, visit:
>
>    http://list.coin-or.org/mailman/admindb/coin-lpsolver
>        
> to approve or deny the request.
>
> ----- Message from Samik Raychaudhuri <samik at freeshell.org> on Fri, 02 
> Dec 2005 10:39:48 -0600 -----
> *To:*
> 	coin-lpsolver at list.coin-or.org
> *Subject:*
> 	Compilation problem for clp
>
>
> Hello,
>
> While trying to compile clp from scratch on Cygwin, I am getting the
> following error when running 'make unitTest':
>
> Creating clp
> g++  -I- -Wall -Wpointer-arith -Wcast-qual -Wwrite-strings -Wconversion
> -pipe -g  -I. -DCOIN_USE_CLP
> -I/cygdrive/d/MyWorld/ORPackages/COIN/Clp/include
> -I/cygdrive/d/MyWorld/ORPackages/COIN/include  -o CYGWIN-g/clp
> CYGWIN-g/ClpMain.o CYGWIN-g/CbcOrClpParam.o CYGWIN-g/unitTest.o
> CYGWIN-g/MyMessageHandler.o CYGWIN-g/MyEventHandler.o
> -L/cygdrive/d/MyWorld/ORPackages/COIN/lib
> -L/cygdrive/d/MyWorld/ORPackages/COIN/lib  -lClp -lCoin  -lm
> /cygdrive/d/MyWorld/ORPackages/COIN/lib/libCoin.a(CoinMpsIO.o):CoinMpsIO.cpp:(.text+0x5577): 
>
> undefined reference to `_glp_mpl_initialize'
> /cygdrive/d/MyWorld/ORPackages/COIN/lib/libCoin.a(CoinMpsIO.o):CoinMpsIO.cpp:(.text+0x55f4): 
>
> undefined reference to `_glp_mpl_read_model'
> /cygdrive/d/MyWorld/ORPackages/COIN/lib/libCoin.a(CoinMpsIO.o):CoinMpsIO.cpp:(.text+0x562a): 
>
> undefined reference to `_glp_mpl_terminate'
> /cygdrive/d/MyWorld/ORPackages/COIN/lib/libCoin.a(CoinMpsIO.o):CoinMpsIO.cpp:(.text+0x56a3): 
>
> undefined reference to `_glp_mpl_read_data'
> /cygdrive/d/MyWorld/ORPackages/COIN/lib/libCoin.a(CoinMpsIO.o):CoinMpsIO.cpp:(.text+0x56cd): 
>
> undefined reference to `_glp_mpl_generate'
> /cygdrive/d/MyWorld/ORPackages/COIN/lib/libCoin.a(CoinMpsIO.o):CoinMpsIO.cpp:(.text+0x56ef): 
>
> undefined reference to `_glp_mpl_get_num_rows'
> /cygdrive/d/MyWorld/ORPackages/COIN/lib/libCoin.a(CoinMpsIO.o):CoinMpsIO.cpp:(.text+0x573e): 
>
> undefined reference to `_glp_mpl_get_row_kind'
> ......
>
> Looks like it is trying to use glpk headers (guessing from the _glp). I
> have explicitly commented glpk in the Makefile.location. This is how it
> looks like:
>
> ---------- Makefile.location -----------
> CoinDir ?= ${HOME}/COIN
>
> CoinLibsDefined :=
>
> CoinLibsDefined += COIN_libCoin
> CoinLibsDefined += COIN_libOsi
> CoinLibsDefined += COIN_libCgl
>
> #CoinLibsDefined += COIN_libVol
> #CoinLibsDefined += COIN_libOsiVol
>
> CoinLibsDefined += COIN_libClp
> CoinLibsDefined += COIN_libOsiClp
>
> #CoinLibsDefined += COIN_libSbb
> #CoinLibsDefined += COIN_libCbc
> #CoinLibsDefined += COIN_libOsiCbc
>
> #CoinLibsDefined += COIN_libSym
> #CoinLibsDefined += COIN_libOsiSym
>
> # CoinLibsDefined += COIN_libCpx
> # CoinLibsDefined += COIN_libOsiCpx
>
> # CoinLibsDefined += COIN_libDylp
> # CoinLibsDefined += COIN_libOsiDylp
>
> # CoinLibsDefined += COIN_libFmp
> # CoinLibsDefined += COIN_libOsiFmp
>
> # CoinLibsDefined += COIN_libGlpk
> # CoinLibsDefined += COIN_libOsiGlpk
>
> # CoinLibsDefined += COIN_libMsk
> # CoinLibsDefined += COIN_libOsiMsk
>
> ...
> --------------------------------
>
> Can anybody point me out what the problem means?
> System Info: Windows XP Home, Cygwin .dll (almost latest), gcc/g++
> version 3.4.4
>
> Thanks for any pointers.
> Regards,
> -Samik
>
>
> ----- Message from coin-lpsolver-request at list.coin-or.org on Unknown 
> -----
> *Subject:*
> 	confirm 1982a16469da7d8e6efdf7c9d258508cbf81cc71
>
>
> If you reply to this message, keeping the Subject: header intact,
> Mailman will discard the held message.  Do this if the message is
> spam.  If you reply to this message and include an Approved: header
> with the list password in it, the message will be approved for posting
> to the list.  The Approved: header can also appear in the first line
> of the body of the reply.




More information about the Clp mailing list