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: Linking problems Visual C, v 6.0


Marco,

I had the same error messages - something to do with multithreaded DLLs, apparently. To fix it: In the Project Options box in the Project-Settings-C/C++ window, type /MD at the end of the list of settings. I don't know enough about GSL or Visual C++ to know exactly why this worked, but it did. Best of luck.

John



At 16:22 23/06/2003, you wrote:

Dear Sirs,

I am trying to use GSL in Visual C++ v 6.0,
for sorting.
I use the includes:

#include "C:\Program Files\GSL\include\gsl\gsl_rng.h"
#include "C:\Program Files\GSL\include\gsl\gsl_sort_double.h"

An the example program given in the GSL-help.

In principle I can compile, but when linking I get the messages:

uwb_main.obj : error LNK2001: unresolved external symbol
_gsl_sort_smallest
uwb_main.obj : error LNK2001: unresolved external symbol
_gsl_rng_uniform
uwb_main.obj : error LNK2001: unresolved external symbol _gsl_rng_alloc
uwb_main.obj : error LNK2001: unresolved external symbol
_gsl_rng_default
uwb_main.obj : error LNK2001: unresolved external symbol
_gsl_rng_env_setup
Debug/uwb.exe : fatal error LNK1120: 5 unresolved externals

I have the paths to GSL-include and GSL-library in Visual C correctly,
so I don't know why I get these errors.

Could you please help me?

Thank you in advance
  Marco

_______________________________________________________________________


John Provis j.provis@pgrad.unimelb.edu.au
Geopolymers and Minerals Processing Group
Department of Chemical and Biomolecular Engineering
University of Melbourne
Victoria 3010 Tel: +61 3 8344 8758
Australia
_______________________________________________________________________



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