[Top][All Lists]

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

Re: [Help-gsl] How do I run my program in LINUX ?

From: John D Lamb
Subject: Re: [Help-gsl] How do I run my program in LINUX ?
Date: Tue, 11 Oct 2005 07:28:33 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050921

鄭宗誠 wrote:
> My OS is Fedora LINUX.
> My program includes gsl_math.h, gsl_sf_bessel.h, gsl_matrix.h, gsl_linalg.h,
> gsl_permutation.h, gsl_blas.h, and gsl_eigen.h.
> And I can compile the program to filmname.o. ( gcc –I/usr/local/include –c
> filmname.c)
> And then, what kinds of library do I need for this program? (example : gcc
> filmname.o -lgsl)


gcc filename.o -o filename -lgsl -lgslcblas -lm

If you need to use -I/usr/local/include to compile you may need to use

-I/usr/local/lib to link the libraries

Most likely, libgsl.a and libgslcblas.a are in /usr/local/lib (possibly
forby and, which are the shared versions of
GSL libraries).


reply via email to

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