The solution to the error LNK2001: unresolved external symbol _gsl_rng_default from using GSL library with MS Visual Studio is simple. It lies inside the project settings (compiler and linker) used for compiling the GSL library and all the test examples. The error disappears when those settings are applied to the work project. Better to do this by looking at the command line options other than browsing the setting dialogs one after one.
Build files for GSL 1.12 for Microsoft Visual Studio 2008
http://gladman.plushost.co.uk/oldsite/computing/gnu_scientific_library.php
(Note: This build has a bug that is not difficult to find out :-))
Subscribe to:
Post Comments (Atom)
5 comments:
hi, thank you for your information. but im still don't understand how to solve that error. please could you tell me the way step-by-step?
It might be easier to use the ported gsl for windows from
http://www.matmidia.mat.puc-rio.br/~alexlaier/index.php/goodies.html
Add "GSL_DLL" to solve the issue to Configuration -> C/C++ -> Preprocessor > Preprocesseur Definition
I Add "GSL_DLL" to solve the issue to Configuration -> C/C++ -> Preprocessor > Preprocesseur Definition
and it works
Thank you very much.
Post a Comment