help-octave
[Top][All Lists]
Advanced

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

Re: oct-file with GSL


From: Michael Kopp
Subject: Re: oct-file with GSL
Date: Wed, 24 May 2006 16:06:06 +0200
User-agent: Thunderbird 1.5.0.2 (X11/20060411)

Kevin H. Hobbs 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).
>>

> 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.

Thank you very much (also to Dmitri and Quentin), this works perfectly. So
far, I do not seem to be having problems with the blas-versions. The
program runs smoothly both with  and without -lgslcblas.

Michael.


reply via email to

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