Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Link GSL into Qt Creator
leon9701 last edited by
I have installed QtSDK 1.2.1-1 on my windows PC, which includes Qt4.8.1 and Qt Creator4.7.3-2.
For the GSL, I have downloaded gsl-1.15, and compiled in to "libgsl.a" et al, and installed using Cygwin. The installation dir is C:\GSL_lib.
So my question is that how can I include this GSL library into my Qt desktop project?
I tried to add the following into the .pro file, but it doesn't work.
INCLUDEPATH += C:/GSL_lib
LIBS += -LC:/GSL_lib/.libs libgsl
Any suggestion is appreciated!
chikuba last edited by
the include path should be where the headers are located (where you will find the files you do #include on) and on the other one you usally do this
LIBS += -L$path$ -l$libname$
goetz last edited by
Can you elaborate "but it doesn’t work" a bit more? Some error messages?