May 4, 2012

leon9701 leon9701
Lab Rat
1 posts

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.
LIBS += -LC:/GSL_lib/.libs libgsl

Any suggestion is appreciated!

2 replies

May 8, 2012

chikuba chikuba
Lab Rat
8 posts

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$

May 13, 2012

Volker Volker
Ant Farmer
5331 posts

Can you elaborate “but it doesn’t work” a bit more? Some error messages?

  ‹‹ Qt, Google BreakPad and MacOs      Experience with serial interface ››

You must log in to post a reply. Not a member yet? Register here!