This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Re: Linking problem with VC++6
- From: Brian Gough <bjg at network-theory dot co dot uk>
- To: "Fiaschi" <blazar at virgilio dot it>
- Cc: <gsl-discuss at sources dot redhat dot com>
- Date: Thu, 23 May 2002 21:25:08 +0100 (BST)
- Subject: Re: Linking problem with VC++6
- References: <006801c2024b$2d791d30$c90fabd4@athlon>
Fiaschi writes:
> I have tried to run the example program for non linear least-square fitting with
> Microsoft Visual C++ 6. The compiler return only these 2 errors:
> Linking...
> fitting.obj : error LNK2001: unresolved external symbol
> _gsl_multifit_fdfsolver_lmsder
> fitting.obj : error LNK2001: unresolved external symbol _gsl_rng_default
> Release/fitting.exe : fatal error LNK1120: 2 unresolved externals
>
> How I can solve this problem?
The libraries for gsl and gslcblas need to be defined in the link
options for the project so the compiler can find them.
The workspace for the 'demo' program has some examples for the
different compilation options (Debug, Release, etc).
regards
--
Brian Gough