Hello, I do my programming in QT. The block I use for GSL is the following (for the .pro file). Of course you must also add the necessary .h files but that should be it.
INCLUDEPATH += C:/GSL-1.13/include DEPENDPATH += C:/GSL-1.13/lib DESTDIR += C:/GSL-1.13/bin LIBS += -LC:/GSL-1.13/lib LIBS += -LC:/GSL-1.13/lib -lgsl LIBS += -LC:/GSL-1.13/lib -lgslcblas Frédéric Perras On Sun, May 6, 2012 at 11:20 AM, zhiqiu li <[email protected]> wrote: > Hi group, > > 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! > >
