Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
I can't get gsl library dll's (or static for that matter) to work with Qt
ndt_mike last edited by ndt_mike
Wondering what I am doing wrong, I must admit.
I have tried a number of things but no luck. Right now I have this in the .pro file, but can't figure out why it's not locating the libgsl.dll file?
win32: LIBS += -L"D:\Qt\Projects\GSL_Test\gsl\bin" -llibgsl.dll INCLUDEPATH += $$PWD/../gsl/include DEPENDPATH += $$PWD/../gsl/include
Here's the compiler output,
mingw32-make: Entering directory 'D:/Qt/Projects/GSL_Test/build-GSL_Test-Desktop_Qt_5_5_0_MinGW_32bit-Debug' g++ -Wl,-subsystem,console -mthreads -o debug\GSL_Test.exe debug/main.o -LD:\Qt\Projects\GSL_Test\gsl\bin -llibgsl.dll -LD:/Qt/Projects/GSL_Test/GSL_Test/../gsl/bin/ -llibgslcblas.dll -LD:/Qt/5.5/mingw492_32/lib -lQt5Cored Makefile.Debug:77: recipe for target 'debug\GSL_Test.exe' failed D:/Qt/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibgsl.dll D:/Qt/Tools/mingw492_32/bin/../lib/gcc/i686-w64-mingw32/4.9.2/../../../../i686-w64-mingw32/bin/ld.exe: cannot find -llibgslcblas.dll collect2.exe: error: ld returned 1 exit status mingw32-make: *** [debug\GSL_Test.exe] Error 1 mingw32-make: *** [debug] Error 2
Has anybody gotten gsl to work with Qt in Windows?
Thanks really like the platform. Pretty sure I am using Qt 5.5.
Hi and welcome to devnet,
You don't link to dlls but to lib files but you don't use the file extension.
LIBS += -lgsl -lgslcblas