This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: linker error
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: Socrates Varakliotis <S dot Varakliotis at cs dot ucl dot ac dot uk>
- Cc: gsl-discuss <gsl-discuss at sources dot redhat dot com>, "s.varakliotis" <s dot varakliotis at cs dot ucl dot ac dot uk>
- Date: Wed, 9 Jan 2002 22:35:04 +0000 (GMT)
- Subject: Re: linker error
- References: <003701c19921$7eebfd10$a10701d5@cheesecake>
Hi,
If this is a problem with files from GNUWIN32 can you report it on
their mailing list at gnuwin32.sourceforge.net, thanks.
Their versions of the header files appear to be broken for DLLs
(lacking __declspec(dllimport)) but maybe they know some way round it.
regards,
--
Brian Gough
----------------------------------------------------------------------
Network Theory Ltd Phone: 0117 3179309 (+44 117 3179309)
15 Royal Park WWW: http://www.network-theory.co.uk/
Bristol BS8 3AL Email: bjg@network-theory.co.uk
United Kingdom
----------------------------------------------------------------------
Socrates Varakliotis writes:
> 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
>