Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GMPL not being used ��Y� (null) no #77

Closed
svigerske opened this issue Mar 2, 2019 · 1 comment
Closed

GMPL not being used ��Y� (null) no #77

svigerske opened this issue Mar 2, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@svigerske
Copy link
Member

Issue created by migration from Trac.

Original creator: lovaj

Original creation time: 2013-03-12 09:25:29

Version: stable/2.6 or 2.6.x

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`@`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`@`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`@`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`@`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.

@svigerske svigerske added bug Something isn't working major labels Mar 2, 2019
@svigerske
Copy link
Member Author

The linking problem was probably caused by a missing space before -lOsiCbc in OSILIB. The other thing I have no idea how to reproduce.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant