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


_______________________________________________
Bug-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gsl

Reply via email to