help-gsl
[Top][All Lists]
Advanced

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

[Help-gsl] Re: What am I doing Wrong?


From: Lionel B
Subject: [Help-gsl] Re: What am I doing Wrong?
Date: Fri, 28 Sep 2007 09:19:25 +0000 (UTC)
User-agent: Pan/0.132 (Waxed in Black)

On Mon, 24 Sep 2007 12:13:48 -0400, neale hirsh wrote:

> Dear Helpers
> 
> I downloaded GSL for inclusion in an intended book. I am having
> difficulty making it work, and I hope somebody has a suggestion.
> 
> GSL appears to compile properly on my Mac under OSX 10.4.10. The
> "configure", "make", and "make install" commands complete without error.

So what makes you think there is a problem then? Have you tried writing 
and compiling code using your GSL installation?

> Three variations of some statistical modules are created: e.g.,
> histogram.c,
> histogram.l, and histogram. Under the Unix command "ls -F", the latter
> module has an asterisk at the end (it's executable). But most modules
> like exponential.c do not have an executable version, and they do not
> execute.

I'm not sure what you think a "module" is supposed to be... files ending 
in .c are C language *source code* files and are certainly not supposed 
to be "executable". The other files you see are possibly compiled code, 
which together make up the GSL "library", to which you will link your own 
code.
 
> I then try to compile modules separately. When I compile exponential.c,
> for example, the error message is "Undefined symbols detected; _xxx,
> _yyy, _zzz", where x-z are the names of every function in the module. In
> desperation, I modify the function names to begin with "_", but the
> error message is "Undefined symbols detected; __xxx" and so forth.

You definitely don't want to compile the .c files separately - the "make" 
step has already done that for you!

I suggest you have a good read of the documentation (particularly how to 
compile and link a program using GSL) and try writing a small program, or 
compile one of the example programs supplied.

Hope this helps,

-- 
Lionel B





reply via email to

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