[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Swig works (Re: Octave and databases)
From: |
David Grundberg |
Subject: |
Swig works (Re: Octave and databases) |
Date: |
Wed, 08 Sep 2010 18:59:43 +0200 |
User-agent: |
Thunderbird 2.0.0.24 (X11/20100411) |
Søren Hauberg skrev:
> ons, 01 09 2010 kl. 21:48 +0200, skrev David Grundberg:
>> Using SWIG together with the database manager's client library is
>> probably smoothest way to make the interfacing oct file.
>
> If memory serves me correct then this is the approach taken by the
> 'database' package. Sadly, SWIG for Octave is the source of quite a bit
> of errors, so for this approach to really work, somebody would have to
> fix SWIG for Octave.
Yeah, I saw that. I made a very simple swig input file, and the wrapper
file swig 1.3.36 produces won't make it through mkoctfile. It's the
symbol table changes (3.0 -> 3.2) that messes it up.
Aaaand, guess what, I tried it on swig's trunk, and there it works like
a charm! They are using the OCTAVE_API_VERSION_NUMBER define rather
furiously.
As it stands now swig has some hack to implement a half-hearted
module/namespace thing ontop of one single DEFUN. I wish swig had taken
another path and prefixed symbols, making each function have its own
DEFUN. Or yet even better, have true namespaces/modules implemented in
Octave :]
Grundberg
- Re: Octave and databases, (continued)
- Re: Octave and databases, Andy Buckle, 2010/09/01
- Re: Octave and databases, CdeMills, 2010/09/01
- Re: Octave and databases, Martin Helm, 2010/09/01
- Re: Octave and databases, CdeMills, 2010/09/01
- Re: Octave and databases, Martin Helm, 2010/09/01
- Re: Octave and databases, fork, 2010/09/01
- Re: Octave and databases, Martin Helm, 2010/09/01
- Re: Octave and databases, fork, 2010/09/01
- Re: Octave and databases, David Grundberg, 2010/09/01
- Re: Octave and databases, Søren Hauberg, 2010/09/02
- Swig works (Re: Octave and databases),
David Grundberg <=
- Re: Swig works (Re: Octave and databases), Xavier Delacour, 2010/09/08
- Re: Swig works (Re: Octave and databases), David Grundberg, 2010/09/08
- Re: Swig works (Re: Octave and databases), Xavier Delacour, 2010/09/08
- Re: Swig works (Re: Octave and databases), Jordi Gutiérrez Hermoso, 2010/09/08
- Re: Swig works (Re: Octave and databases), John W. Eaton, 2010/09/08
- Re: Swig works (Re: Octave and databases), Xavier Delacour, 2010/09/08
- Re: Swig works (Re: Octave and databases), John W. Eaton, 2010/09/09
- Re: Swig works (Re: Octave and databases), Xavier Delacour, 2010/09/09