[Ipopt] libcoinlapack.so: undefined reference to `dlarfp_'
叶剑华
jh_ye at tju.edu.cn
Tue Aug 2 04:13:27 EDT 2016
Hello to the community,
I have installed Ipopt-3.12.6 successfully in Deepin (Linux based on Debian). I'd like to use Ipopt in my C program. the content of my pro file is as follows:
TEMPLATE = app
TARGET = IpoptForRPOQiuShi
DESTDIR = /home/yjh/Documents/VSM_Bin
INCLUDEPATH += . /home/yjh/Documents/CoinIpopt/build/include/coin /home/yjh/Documents/CoinIpopt/build/include/coin/ThirdParty
LIBS += -L/home/yjh/Documents/CoinIpopt/build/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lipopt -ldl -lcoinhsl -lcoinlapack -lcoinblas -lgfortran -lm -lquadmath -lstdc++ -lm
CONFIG +=debug warn_off
# Input
HEADERS += data.h
SOURCES += IpoptForRPOQiuShi.c
After I typed qmake,make, and encountered the mistakes:
gcc -c -m64 -pipe -g -w -D_REENTRANT -fPIE -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/x86_64-linux-gnu/qt5/mkspecs/linux-g++-64 -I. -I. -I../CoinIpopt/build/include/coin -I../CoinIpopt/build/include/coin/ThirdParty -isystem /usr/include/x86_64-linux-gnu/qt5 -isystem /usr/include/x86_64-linux-gnu/qt5/QtGui -isystem /usr/include/x86_64-linux-gnu/qt5/QtCore -I. -o IpoptForRPOQiuShi.o IpoptForRPOQiuShi.c
g++ -m64 -o ../VSM_Bin/IpoptForRPOQiuShi IpoptForRPOQiuShi.o -L/usr/X11R6/lib64 -L/home/yjh/Documents/CoinIpopt/build/lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8 -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../../lib -L/lib/../lib -L/usr/lib/../lib -L/usr/lib/gcc/x86_64-linux-gnu/4.8/../../.. -lipopt -ldl -lcoinhsl -lcoinlapack -lcoinblas -lgfortran -lquadmath -lstdc++ -lm -lQt5Gui -lQt5Core -lGL -lpthread
/home/yjh/Documents/CoinIpopt/build/lib/libcoinlapack.so: undefined reference to `dlarfp_'
collect2: error: ld returned 1 exit status
make: *** [../VSM_Bin/IpoptForRPOQiuShi] Error 1
I used lapack-3.2.1, please help me. Thanks a lot.
Best regards,
Jianhua
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20160802/9e0568a8/attachment.html>
More information about the Ipopt
mailing list