Link GSL into Qt Creator
-
Hi guys,
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 libgslAny suggestion is appreciated!
-
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$
-
Can you elaborate "but it doesn’t work" a bit more? Some error messages?