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:

[EMAIL PROTECTED] ~]$ 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:
[EMAIL PROTECTED] ~]$ 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 mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to