[Coin-discuss] simple use of CoinUtils

Stefan Vigerske stefan at vigerske.de
Sat May 24 13:28:58 EDT 2008


Hi,

Matthew Galati wrote:
> I have a very simple example trying to use CoinMpsIO.
> 
> I get the following undefined references. What is libCoinUtils looking for?

Lapack or Blas.

If it got not included into libcoinutils, check the add_coinutils.txt 
for the linker flags. (Might be in the lib directory after make install.)

Best,
Stefan

> 
> [magala at ordlnx01 netemb]$ more netemb.cpp
> #include "CoinMpsIO.hpp"
> 
> int main(int argc, char ** argv){
>    CoinMpsIO mpsIO;
>    return 0;
> }
> 
> 
> [magala at ordlnx01 netemb]$ make -f Makefile.NetEmb
> Compiling netemb.cpp
> g++   -I -Wall -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe -DLinux -g -I. -I/users/magala/sasopt/ppgcp/coin-CoinUtils/include/coin -DDEBUG -DREADLINE -c netemb.cpp -o Linux-g/netemb.o
> 
> Creating netemb
> g++   -I -Wall -Wpointer-arith -Wcast-qual -Wwrite-strings -pipe -DLinux -g -I. -I/users/magala/sasopt/ppgcp/coin-CoinUtils/include/coin -DDEBUG -DREADLINE -o Linux-g/netemb Linux-g/netemb.o -L/users/magala/sasopt/ppgcp/coin-CoinUtils/lib -lCoinUtils    -lg2c -lm
> /users/magala/sasopt/ppgcp/coin-CoinUtils/lib/libCoinUtils.so: undefined reference to `dgetrs_'
> /users/magala/sasopt/ppgcp/coin-CoinUtils/lib/libCoinUtils.so: undefined reference to `dgetrf_'
> collect2: ld returned 1 exit status
> make: *** [Linux-g/netemb] Error 1
> 
> 
> 
> 
> 
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
> 




More information about the Coin-discuss mailing list