[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Help updating swig for octave 4.0.0
From: |
Orion Poplawski |
Subject: |
Re: Help updating swig for octave 4.0.0 |
Date: |
Thu, 9 Jul 2015 16:40:25 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.0.1 |
On 07/08/2015 02:00 PM, Orion Poplawski wrote:
> I'm asking for some help with updating swig to support octave 4.0.0. Initial
> attempt is here: https://github.com/swig/swig/pull/460 but I'm still getting
> build failures:
>
>
> error: octave_base_value::print (): wrong type argument 'swig_ref'
> error: called from
> runme.m at line 40 column 1
> ../../Makefile:453: recipe for target 'octave_run' failed
>
> I'm still poking around, but I know nothing about octave internals.
>
> Thanks,
> Orion
>
Some more info:
swig currently defines:
namespace Swig {
class octave_swig_ref:public octave_base_value {
...
private:
DECLARE_OCTAVE_ALLOCATOR;
DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA;
};
DEFINE_OCTAVE_ALLOCATOR(octave_swig_ref);
DEFINE_OV_TYPEID_FUNCTIONS_AND_DATA(octave_swig_ref, "swig_ref", "swig_ref");
So I see that the *_OCTAVE_ALLOCATOR defines are gone, so I removed the from
the above. But I suspect we aren't registering the swig_ref type properly
leading to the error:
error: octave_base_value::print (): wrong type argument 'swig_ref'
I see that there is a DECLARE_OV_TYPEID_FUNCTIONS_AND_DATA2() macro now. Does
that need to be used?
Again any help would be greatly appreciated.
--
Orion Poplawski
Technical Manager 303-415-9701 x222
NWRA, Boulder/CoRA Office FAX: 303-415-9702
3380 Mitchell Lane address@hidden
Boulder, CO 80301 http://www.nwra.com