[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-gsl] GSL linking help
From: |
Haoyue Wang |
Subject: |
[Help-gsl] GSL linking help |
Date: |
Tue, 16 Dec 2003 00:01:55 -0800 (PST) |
Hello,
I encountered a problem while linking the object. The compiling worked
OK and produced the object temp.o:
gcc -I/home/hw/aaa/gsl-1.4 -c temp.c
The linking did not work:
gcc temp.o -lgsl -gslcblas -lm
/usr/bin/ld: cannot find -lgsl
collect2: ld returned 1 exit status
Note that I set up the 1.4 version of the GSL. libgsl.la (not .a) is
under the directory /home/hw/aaa/gsl-1.4, and libgslcblas.la is under
gsl-1.4/cblas. The platform is a PC running RedHat Linux.
What can I do to let gcc know where to locate the library files?
Thank you.
Haoyue Wang
- [Help-gsl] GSL linking help,
Haoyue Wang <=