Hello,

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 !

[]´s



Reply via email to