I\'m working with Qt 4.8.3 and QtCreator, which I\'ve compiled with msvc2010 as per the instructions here. Now however I need to link to GSL (Gnu Scientific Library), but c
I have implemented CMake build support for GSL here: https://github.com/ampl/gsl
CMake can either generate a Visual Studio solution or NMake makefiles. For example:
> git clone git://github.com/ampl/gsl.git
> cd gsl
> cmake .
-- Building for: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
...
This generates the solution (GSL.sln
) and project files for Visual Studio 2010.
This CMake build script is now included in the contrib
directory of the GSL Git repository git://git.savannah.gnu.org/gsl.git
.
As of May 2014, building shared libraries (DLLs) is supported as well with GSL_SHARED
option.
You can use CMake and create your own build from this repository for whatever Visual Studio version you are using. Check out the answer by @vitaut for more details.