[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] some problem while linking
From: |
boufflet |
Subject: |
[Help-gsl] some problem while linking |
Date: |
Wed, 27 Sep 2006 11:11:51 +0200 |
User-agent: |
Mozilla Thunderbird 1.0.2-6 (X11/20050513) |
Hi,
We encounter some problems at the linking stage.
The library has been first installed properly as indicated in the
INSTALL file.
We use a standard linux (Fedora).
The paths are :
/usr/local/include
/usr/local/lib
We try to compile the example provided in section 8.4.13 of the website.
The link failed.
Then we just try to compile and link this part of code:
#include <stdio.h>
#include <gsl/gsl_matrix.h>
int
main (void)
{
int i, j;
gsl_matrix * m = gsl_matrix_alloc (10, 3);
return 0;
}
We have the following answer:
address@hidden ~]$ gcc gsl_try.c -o gsl_try
/tmp/ccgTr3Jx.o(.text+0x24): In function `main':
gsl_try.c: undefined reference to `gsl_matrix_alloc'
collect2: ld a retourné 1 code d'état d'exécution
We get no error while using the '-c' option as:
address@hidden ~]$ gcc -c gsl_try.c
We have also tried to add '-L' option with the appropriate path without
any success.
Would you please help us to find the solution ?
Thanks a lot,
Marc, Jean Paul.
- [Help-gsl] some problem while linking,
boufflet <=