[Ipopt] libcoinlapack.so: undefined reference to `dlarfp_'

叶剑华 jh_ye at tju.edu.cn
Tue Aug 2 23:34:54 EDT 2016

Hi Stefan,

I have downloaded Lapack 3.4.2, then I solved the problem. Thank you very much!Jianhua-----原始邮件-----
发件人: Stefan Vigerske <stefan at math.hu-berlin.de>
发送时间: 2016年8月2日 星期二
收件人: "叶剑华" <jh_ye at tju.edu.cn>, ipopt at list.coin-or.org
主题: Re: [Ipopt] libcoinlapack.so: undefined reference to `dlarfp_'


the Lapack build system of COIN-OR (ThirdParty/Lapack) assumes a Lapack 
3.4.2 source. It seems that dlarfp was removed somewhere between Lapack 
3.2.1 and Lapack 3.4.2.
Best would be if you just provide the correct Lapack version by 
executing the get.Lapack script int ThirdParty/Lapack.


On 08/02/2016 10:13 AM, 叶剑华 wrote:
> 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
> _______________________________________________
> Ipopt mailing list
> Ipopt at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/ipopt


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.coin-or.org/pipermail/ipopt/attachments/20160803/c0eb6520/attachment.html>

More information about the Ipopt mailing list