[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GSL installation procdure and linker related problems
From: |
Simone Landini |
Subject: |
GSL installation procdure and linker related problems |
Date: |
Sat, 28 Mar 2020 20:42:25 +0100 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.6.0 |
Hi evereyone, I try to be more precise wrt my previous help request.
I am using Microsoft Visual Studio Community 2019 (VSC2019).
I installed GSL using the vcpkg tool but I also copy&paste a gsl folder
"C:\gsl" containing the latest gsl-2.6 files and folders: is this an
appropriated procedure?
Here is the code
#include <stdio.h>
// the path to the gsl folder is in "C:\gsl"
#include <C:\gsl\specfunc\gsl_sf_bessel.h>
// the example
int main (void){
double x = 5.0;
double y = gsl_sf_bessel_J0 (x);
printf ("J0(%g) = %.18e\n", x, y);
return 0;
}
The VSC2019 editor does not highlight the "#include
<C:\gsl\specfunc\gsl_sf_bessel.h>", so the library should be visible.
Then CTRL+F5 and I have 3 errors: this is what I get (I have an Italian
version of VSC2019: I translate below)
Codice Descrizione Progetto
File Riga
E1696 impossibile aprire il codice errore "gsl/gsl_mode.h" del file
origine ConsoleApplication5 C:\gsl\specfunc\gsl_sf_bessel.h 26
Code Description Project
File Row
E1696 impossible to open "gsl/gsl_mode.h" of the origin file
ConsoleApplication5 C:\gsl\specfunc\gsl_sf_bessel.h 26
The same errors for "gsl/gsl_precison.h" and "gsl/gsl_sf_result.h"
Are these linker related errors?
How can I specify library name and path to the linker?
Thank you
Simone
- GSL installation procdure and linker related problems,
Simone Landini <=