This is the mail archive of the
gsl-discuss@sources.redhat.com
mailing list for the GSL project.
Linking problems Visual C, v 6.0
- From: "Marco Hernandez" <Marco dot Hernandez at kohnolab dot dnj dot ynu dot ac dot jp>
- To: <gsl-discuss at sources dot redhat dot com>
- Date: Mon, 23 Jun 2003 15:22:23 +0900
- Subject: Linking problems Visual C, v 6.0
- Organization: YNU
- Reply-to: <Marco dot Hernandez at kohnolab dot dnj dot ynu dot ac dot jp>
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