[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] Re: Cannot compile example.c

From: Thomas Weber
Subject: [Help-gsl] Re: Cannot compile example.c
Date: Fri, 09 Jun 2006 08:01:29 +0200

Am Donnerstag, den 08.06.2006, 19:35 -0700 schrieb Nicolás Quesada:
> I'm having the same problem compiling the same program under FreeBSD : I type:
> gcc -L/usr/local/lib example.o -lgsl -lgslcblas -lm
> and
> gcc example.o -lgsl -lgslcblas -lm
> gcc   /usr/local/include/gsl/ example.o -lgsl -lgslcblas -lm
> It is installed in /usr/local/include/gsl/
> the error I get is:
> ex.c:2:31: gsl/gsl_sf_bessel.h: No such file or directory

That's a different one; if your header files are
in /usr/local/include/gsl/, and you have something like 
  #inlcude <gsl/gsl_sf_bessel.h> 
in your files, you must use
  -I /usr/local/include
(that is, leave the last "/gsl" out).
With your usage, the compiler is looking for a file

Have a look at section 2.2 of the gsl docs ("Compiling and Linking")


reply via email to

[Prev in Thread] Current Thread [Next in Thread]