mercredi 4 mars 2015

running c++ code with GSL functions


I have installed GSL in my computer in to the directory /usr/local/gsl-1.16 and tried to run a test code from GSL website.


The code is (just in case)


include


include


int main (void) { double x = 5.0; double y = gsl_sf_bessel_J0 (x); printf ("J0(%g) = %.18e\n", x, y); return 0; }


I typed in the terminal the following -Wall -I/usr/local -c Test2.cpp -o Test2.out -L/usr/local/lib Test2.out -lgsl -lgslcblas -lm The issue is that nothing was shown on the screen as it was supposed to. I am wondering how to get the code work correctly. Can anyone help?





Aucun commentaire:

Enregistrer un commentaire