This is the mail archive of the gsl-discuss@sources.redhat.com mailing list for the GSL project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: HELP : Can't link with MSVC.


vincent daanen writes:
 >   Hi,
 >  I'm trying to use the simulated annealing optimization function.
 > When linking, the linker hangs with these errors :
 >     Linking...  MyRigidRegistrationDMap.obj : error LNK2001:
 >     unresolved external
 > symbol _gsl_rng_default
 >     Debug/SpinePer.exe : fatal error LNK1120: 1 unresolved
 >     externals Error executing link.exe.
 >
 >     SpinePer.exe - 2 error(s), 0 warning(s)
 >  I add the gsl.lib and gslcblas.lib to the libraries to link with
 > but nothing change !
 >
 >   does anybody know what should I do ??
 > PS : i'm using the binary build find at : www.network-theory.co.uk
 > <http://www.network-theory.co.uk/gsl/freedownloads.html>.
 >

The library is a DLL so you need to compile your code with /MD. 

See the online help for the compiler about runtime link settings, or
use the project file for the demo program as a starting point.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]