This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
linker error
- From: Socrates Varakliotis <S dot Varakliotis at cs dot ucl dot ac dot uk>
- To: gsl-discuss <gsl-discuss at sources dot redhat dot com>
- Cc: "s.varakliotis" <s dot varakliotis at cs dot ucl dot ac dot uk>
- Date: Wed, 9 Jan 2002 15:22:43 -0000
- Subject: linker error
Hi,
I am compiling the Interpolation example from the ref manual on WinNT/VC++
6.0 with precompiled libraries. All paths are taken care of, but the linker
complains:
---
Linking...
main_interpolate.obj : error LNK2001: unresolved external symbol
_gsl_interp_cspline
Debug/inter.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
inter.exe - 2 error(s), 0 warning(s)
----
I checked the file gsl_interp.h in gsl\lib and I found:
/* available types */
extern const gsl_interp_type * gsl_interp_linear;
extern const gsl_interp_type * gsl_interp_cspline;
extern const gsl_interp_type * gsl_interp_cspline_periodic;
extern const gsl_interp_type * gsl_interp_akima;
extern const gsl_interp_type * gsl_interp_akima_periodic;
Although defined as extern, the above Interpolation types are not defined
anywhere.
Am I mising something? libgsl.lib is linked to the project (and .dlls are
copied in the binary directory...) anyway.
Thanks,
--
Socrates