help-octave
[Top][All Lists]
Advanced

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

Re: oct-file with GSL


From: Kevin H. Hobbs
Subject: Re: oct-file with GSL
Date: Tue, 23 May 2006 10:57:42 -0400

On Tue, 2006-05-23 at 15:50 +0200, Michael Kopp wrote:
> 
> Probably not. I do not know much about linking etc., but now I tried
> 
> mkoctfile -l/usr/lib/libgsl.so -l/usr/lib/libgslcblas.so gsl_rand.cc
> 
> However, I get the error message
> 
> /usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld:
> cannot find -l/usr/lib/libgsl.so
> collect2: ld returned 1 exit status
> 
> (although the two files exist in /usr/lib).
> 
> Any suggestions? Sorry to bother you again,
> 
> 
> Michael.

Well I've never used mkoctfile but I've built lots of things that need
to be linked to things, so I'll just pretend it's gcc.

Try, just -lgsl -lgslcblas. The linker knows to look in 'standard'
places like /usr/lib, and it knows that libs have standard names like
libBLAH.so. I just installed the devel package just to check and it
looks like you are on the right track.

One thing that you might have to worry about though is a conflict
between blas libraries. I don't know if this is actually a problem but
you could easily get atlas, gslcblas, and regular Fortran blas all mixed
up. GSL can use a different cblas than the minimal one that it comes
with.

Attachment: signature.asc
Description: This is a digitally signed message part


reply via email to

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