This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: HELP : Can't link with MSVC.
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: vincent daanen <vincent dot daanen at imag dot fr>
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Fri, 22 Nov 2002 09:52:07 +0000 (GMT)
- Subject: Re: HELP : Can't link with MSVC.
- References: <3DDB9E18.1070505@imag.fr>
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.