help-gsl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-gsl] Comiling and Linking a C Program That Includes The GSL


From: Jeff Leuschner
Subject: [Help-gsl] Comiling and Linking a C Program That Includes The GSL
Date: Mon, 19 Dec 2005 17:14:10 -0500 (EST)
User-agent: SquirrelMail/1.4.5

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]