[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-gsl] fails running gsl_multimin_fdfminimizer_vector_bfgs2
From: |
Frank Reininghaus |
Subject: |
Re: [Bug-gsl] fails running gsl_multimin_fdfminimizer_vector_bfgs2 |
Date: |
Wed, 18 Jun 2008 20:23:00 +0200 |
User-agent: |
KMail/1.9.9 |
Hi,
the easiest way is probably to replace
g++ testGSLMin.cpp -I .../externalTools/GSL/installed/include/ -o
testGSLMin.exe -L .../externalTools/GSL/installed/lib/ -lgsl -lgslcblas
by
g++ testGSLMin.cpp -I .../externalTools/GSL/installed/include/ -o
testGSLMin.exe .../externalTools/GSL/installed/lib/libgsl.a
.../externalTools/GSL/installed/lib/libgslcblas.a
This will link to GSL statically (resulting in a larger executable), but the
advantage is that you don't need to mess around with linker options or
LD_LIBRARY_PATH to make sure that your program links to the correct version
of GSL's shared library.
Cheers,
Frank