This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: LINKING GSL
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Trond Mathias Døskeland <trond dot doskeland at nhh dot no>, samoghe at netscape dot net (Sachin Moghe)
- Cc: gsl-discuss at sources dot redhat dot com
- Date: Thu, 14 Nov 2002 12:25:42 +0000 (GMT)
- Subject: Re: LINKING GSL
- References: <6924D529.493B7596.002157EC@netscape.net><3DCC0DE2.26495A34@nhh.no>
Trond Mathias Døskeland writes:
> I also get this problem with e.g. error LNK2001: unresolved
> external symbol _gsl_multimin_fdfminimizer_conjugate_pr. This
> happen even though I write libgsl.lib and libgslcblas.lib in
> project settings.
Sachin Moghe writes:
> I keep getting a linking error: "error LNK2001: unresolved external
> symbol _gsl_interp_cspline" when I try to compile the example
> program in the interpolation section. I am sure I have included the
> two lib files: C:\softwares\GSL\include\gsl - header files
> C:\softwares\GSL\lib\libgsl.lib - Main lib file
> C:\softwares\GSL\lib\libgslcblas.lib - BLAS lib file Also, the
> 'include' and 'lib' paths are correctly set.
> Can anyone please suggest any solution ?
The library is a DLL so you need to compile your code with /MD.