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]

Re: linker error


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
 > 


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