help-octave
[Top][All Lists]
Advanced

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

Re: How to combine several functions in a single oct-file? (2)


From: Lukas Reichlin
Subject: Re: How to combine several functions in a single oct-file? (2)
Date: Mon, 13 Feb 2012 07:55:03 +0100

On 13.02.2012, at 00:47, Michael Goffioul wrote:

> On Sun, Feb 12, 2012 at 11:01 PM, Lukas Reichlin
> <address@hidden> wrote:
>>>> There is (or used to be) the PKG_DEL counterpart to PKG_ADD. But
>>>> what's missing is autounload (such feature request makes sense imo).
>>>> The other possibility is to put all the common code into a single
>>>> shared library, then link all oct-files to that library.
>>>> 
>>>> Michael.
>>> 
>>> Hi Michael,
>>> 
>>> I like your idea of a single shared library very much. Is it possible to 
>>> create such a library out of SLICOT upon package installation? It would be 
>>> nice if I could link it the same way as the BLAS and LAPACK libraries.
>>> 
>>> Best regards,
>>> Lukas
>> 
>> PS: I would like to include the archive slicot.tar.gz [1] in my package. 
>> Then, upon package installation, it should be unpacked and compiled to a 
>> library I can link to. Until now, I have to add all files by hand, which is 
>> quite ugly [2].
>> 
>> Lukas
>> 
>> [1] SLICOT Library
>> http://www.slicot.org/shared/slicot.tar.gz
>> 
>> [2] Makefile of the control package
>> http://octave.svn.sourceforge.net/viewvc/octave/trunk/octave-forge/main/control/src/Makefile?revision=9513&view=markup
>> 
> 
> I'd say as long as you write the appropriate Makefile, you can do
> whatever you want.
> 
> Michael.

OK, thanks. I assume I have to create something like
~/octave/control-2.2.5/x86_64-apple-darwin10.8.0-api-v48+/slicotlibrary.a

Do you know the mkoctfile options to create such a library file?

Lukas



reply via email to

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