简体   繁体   中英

Problems linking gsl 2.1 with Qt

I'm using Qt 5.8 and gsl 2.1 (compiled with cygwin64). This is what I use in the .pro file to link gsl:

INCLUDEPATH+=C:/gsl/include/
INCLUDEPATH += C:/gsl/LIBS
LIBS += -LC:/gsl/lib -lgsl -lgslcblas -lm

When I include the headers and compile, I don't have any problem, even when I declare and object. But when I try to use any function I get this error:

C:\Users\CIFAS-1\untitled4\mainwindow.cpp:9: error: undefined reference to `gsl_matrix_alloc'.

我已经解决了问题,我在这里https://code.google.com/archive/p/gsl-w32/downloads找到了mingw32的gsl编译版本,它是另一个版本,但是效果很好。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM