[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 13:48:22 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121027 Icedove/10.0.10


On 16/12/12 10:48, Jorge Barros de Abreu wrote:
Hi for all.

The compilation of combination.c fram gsl 1.15 do not occurs on a slackware
default with linux kernel #3 SMP ..... x86_64.

The error message is:

crt1.o: In function `_start':
x86_64/elf/start.S:109: undefined reference to `main'
collect2: ld returned 1 exit status

The compilation command is

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

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.

With this same command the compilation of random.c is OK.

it should not.


A empty config.h do not fix the problem.

Thanks for your attention.

reply via email to

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