[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gsl] Link GSL into Qt

From: Fred Perras
Subject: Re: [Help-gsl] Link GSL into Qt
Date: Sun, 6 May 2012 11:59:32 -0400


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 <address@hidden> 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.
> LIBS += -LC:/GSL_lib/.libs libgsl
> Any suggestion is appreciated!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]