From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!peer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Help linking to Octave (mathematical) functions References: <74a567c4-eb60-4bc1-b03a-4c3a7be7676f@googlegroups.com> <0880c93b-81ff-4aaf-ae3b-91d82f76a23f@googlegroups.com> Date: Mon, 29 Dec 2014 03:21:07 -0600 Message-ID: <85ioguu7zw.fsf@stephe-leake.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (windows-nt) Cancel-Lock: sha1:EmxiNp/ljq9DThoIE2uKEdhHwA0= MIME-Version: 1.0 Content-Type: text/plain X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 09f0954a11d05e3fb833020049 X-Received-Bytes: 1856 X-Received-Body-CRC: 1193802317 Xref: news.eternal-september.org comp.lang.ada:24272 Date: 2014-12-29T03:21:07-06:00 List-Id: Jerry writes: >> Despite the documentation said it is like "shared library or shared >> object", it is referring to Octave itself "An oct-file is a dynamical >> extension of the Octave interpreter". >> On MacOS, even with GNAT, at the end, all object files are loaded by ld >> but I haven't seen that oct files are supported by ld. > > That's not good. I wonder if the internal structure of an oct file is > similar to other files known by ld. I suppose this is a question for > the Octave developer list. Yes. Or a Mac list; the problem seems to be with the "bundle" stuff. Can you try this on a Linux distribution? Since this is all open source, you could try compiling the bessel library from source using GNAT, and either creating a more standard library or just include it in your main project. Another option is to link the Octave interpreter to the Ada program, and then tell it to load the oct-file. There may be an Octave library that lets you do this, hopefully with an Ada binding available. -- -- Stephe