[CoinUtils-tickets] [COIN-OR Common Utilities] #77: GMPL not being used ��Y� (null) no

COIN-OR Common Utilities coin-trac at coin-or.org
Tue Mar 12 05:25:29 EDT 2013


#77: GMPL not being used ��Y� (null) no
--------------------------------+-------------------
Reporter:  lovaj                |      Type:  defect
  Status:  new                  |  Priority:  major
 Version:  stable/2.6 or 2.6.x  |  Keywords:
--------------------------------+-------------------
 Hello! I'm an italian guy student so sorry for my BAD english!
 I need your help about the Coin-All project.

 I'm trying to use a project made by my Prof. This is his the makefile,
 edited by me for my system (I'm using Ubuntu 12.04):

 {{{

 # module name
 NAME = cwl2

 # switches
 SW = -O3 -g

 # COIN base directory
 COINDIR = /home/luca-kun/Desktop/LOG/coin-All/

 # Osi libreries
 OSIINC = -I$(COINDIR)include/coin/
 OSILIB = -L$(COINDIR)lib/-lOsiCbc -lOsiClp -lClp -lOsi -lCoinUtils


 # libreries
 # mac version
 #LIB = $(OSILIB) -lm -framework vecLib
 # standard version
  LIBS_PATH = $(OSILIB) -llapack -lm

 # compiler
 CC = g++

 # default target- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - -

 default: $(NAME)

 # clean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 - -

 clean::
         rm -f *.o *~ $(NAME)

 # main module (linking phase) - - - - - - - - - - - - - - - - - - - - - -
 - -

 OBJ =   cwl2.o

 $(NAME): $(OBJ)
         $(CC) -o $(NAME) $(OBJ) $(LIBS_PATH) $(SW)

 # dependencies: every .o from its .C + every recursively included .h- - -
 - -

 cwl2.o: cwl2.cpp
         $(CC) -c $*.cpp -o $@ $(OSIINC) $(SW)

 }}}

 When I tried to compile the project for the first time, it returned those
 errors:

 {{{
 luca-kun at ubuntu:~/Desktop/LOG/cwl2$ make
 g++ -c cwl2.cpp -o cwl2.o -I/home/luca-kun/Desktop/LOG/coin-
 All/include/coin/ -O3 -g
 g++ -o cwl2 cwl2.o -L/home/luca-kun/Desktop/LOG/coin-All/lib/-lOsiCbc
 -lOsiClp -lClp -lOsi -lCoinUtils -llapack -lm -O3 -g
 /usr/bin/ld: cannot find -lOsiClp
 /usr/bin/ld: cannot find -lOsi
 collect2: ld returned 1 exit status
 make: *** [cwl2] Error 1
 luca-kun at ubuntu:~/Desktop/LOG/cwl2$
 }}}

 So, roughly , I copied all the libraries in the Osi and Clp projects and
 pasted in the /usr/lib directory.

 After that, there was no errors during compilation.

 But, if I try to run the program (I'm sure that the instance file
 small.txt is correct), I have this error:

 {{{
 luca-kun at ubuntu:~/Desktop/LOG/cwl2$ ./cwl2 data/small.txt
 Solving instance data/small.txt with 4 warehouses and 10 customers
 GMPL not being used �Z� (null) no
 Aborted (core dumped)
 luca-kun at ubuntu:~/Desktop/LOG/cwl2$
 }}}

 Searching on Google, I discovered that this an error message in
 CoinUtils/src/CoinMpsIO.cpp. I don't really understand what is wrong...

 Again, sorry for my english.

 Regards!

 Ps: I made a ticket in Utils Project section because I didn't find a
 "Coin-All" project area...and because the error message is in coin-Utils
 file.

-- 
Ticket URL: <https://projects.coin-or.org/ticket/77>
COIN-OR Common Utilities <http://projects.coin-or.org/CoinUtils>
Common data structures and linear algebra functions for COIN-OR projects



More information about the CoinUtils-tickets mailing list