[bug-gsl] Re: fails running gsl_multimin_fdfminimizer_vector_bfgs2 (2008-06-18)
|
From: |
Frank Reininghaus <frank78ac@..............> |
|
Subject: |
Re: fails running gsl_multimin_fdfminimizer_vector_bfgs2 |
|
Date: |
Wed, 18 Jun 2008 20:23:00 +0200 |
|
To: |
bug-gsl@gnu.org |
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