[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 |
Hello,
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 2.6.37.6 #3 SMP ..... x86_64.
The error message is:
/usr/lib64/gcc/x86_64-slackware-linux/4.5.2/../../../../lib64/
crt1.o: In function `_start':
/glibc-tmp-6bcb10e90c33131827e91375249a38fb/glibc-2.13/csu/../sysdeps/
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.
hth,
Jerome
A empty config.h do not fix the problem.
Thanks for your attention.