Hello,

I'm in the process of trying to successfully compile and link my first C
program that includes the GSL. The program is a simple one copied from
section 8.2.3 of the GSL manual.

my compiling line is: gcc -I/usr/local/csw/include -c example1.c
This creates the object file without any issue (note the GSL is not
installed in its default location).

my linking line is: gcc -L/usr/local/csw/lib example1.o -lgsl -lgslcblas -lm
This creates an a.out* file.

Then when I type a.out, I get the following error:
ld.so.1: a.out: fatal: libgsl.so.0: open failed: No such file or directory
Killed

Can anyone suggest what I am doing wrong?

Thank you,
Jeff Leuschner



_______________________________________________
Help-gsl mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-gsl

Reply via email to