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]

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


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