[Top][All Lists]

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

Re: [Help-gsl] combination.c config.h

From: Jerome BENOIT
Subject: Re: [Help-gsl] combination.c config.h
Date: Sun, 16 Dec 2012 20:40:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10


On 16/12/12 16:39, Jorge Barros de Abreu wrote:
On Sun, Dec 16, 2012 at 01:47:57PM +0100, Jerome BENOIT wrote:

so everything is fine as `combination.c' is meant to belong to a library or to 
a program.

For a program, one `main' function have to be written as for any C code.

The program to be compiled for me is demo.c and not combination.c.

In your first email it is written:

gcc -Wall -o combination combination.c -L... -I... -lgsl -lgslcblas -lm

but not

gcc -Wall -o demo demo.c -L... -I... -lgsl -lgslcblas -lm

Second, GSL is a library and a very good idea is to use it as such.
pkg-config can be used.

gcc -Wall -o demo demo.c $(pkg-config gsl  --cflags --lib)

Thanks for your time again.

You are welcome !


reply via email to

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