I tried to attach the ov.h, but the size limit is something like 4 kb (!), so it was bounced.  Link to file on dropbox: https://www.dropbox.com/s/hmxwhlm4jpo2iqg/ov.h

Ian


On Mon, Jul 7, 2014 at 8:37 AM, Ian Bell <ian.h.bell@gmail.com> wrote:
My ov.h is attached.  Any light you can shed would be appreciated.


On Mon, Jul 7, 2014 at 2:08 AM, Karl Wette <karl.wette@gmail.com> wrote:
What does the Octave header octave/ov.h contain?

On 6 July 2014 23:44, Ian Bell <ian.h.bell@gmail.com> wrote:
> I'm at 3.0.2, still no luck.
>
>
> On Sun, Jul 6, 2014 at 11:20 PM, Karl Wette <karl.wette@gmail.com> wrote:
>>
>> Support for Octave 3.8.0 was only added in SWIG 2.0.12, so you'll need
>> to use that or a newer version.
>>
>> Cheers, Karl
>>
>> On 6 July 2014 22:32, Ian Bell <ian.h.bell@gmail.com> wrote:
>> > I've gotten a binary of Octave working on OSX 10.9, but I am getting
>> > compilation errors with my octave wrapper - it works on linux and
>> > windows.
>> > There is a small set of output from my CMake below.  Anyone have any
>> > ideas?
>> > Is the problem on the swig side?  I can provide anything else needed to
>> > duplicate this error:
>> >
>> > To duplicate this error:
>> >
>> > git clone --recursive https://github.com/CoolProp/CoolProp
>> > cd CoolProp
>> > mkdir -p build/Octave
>> > cd build/Octave
>> > cmake ../.. -DCOOLPROP_OCTAVE_MODULE=ON -DBUILD_TESTING=ON
>> > cmake --build .
>> >
>> > Ian
>> >
>> > [  7%] Building CXX object
>> > CMakeFiles/CoolProp.dir/src/CoolPropOCTAVE_wrap.cxx.o
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:1507:24:
>> > error: virtual function 'map_value' has a different return type
>> > ('Octave_map') than the function it overrides (which has return type
>> > 'octave_map')
>> >     virtual Octave_map map_value() const {
>> >                        ^
>> > /usr/local/octave/3.8.0/include/octave-3.8.0/octave/ov-base.h:568:22:
>> > note:
>> > overridden virtual function is here
>> >   virtual octave_map map_value (void) const;
>> >                      ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:1507:13:
>> > warning: 'Octave_map' is deprecated [-Wdeprecated-declarations]
>> >     virtual Octave_map map_value() const {
>> >             ^
>> >
>> > /usr/local/octave/3.8.0/include/octave-3.8.0/octave/../octave/oct-map.h:484:1:
>> > note: 'Octave_map' declared here
>> > Octave_map
>> > ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:1183:46:
>> > error: no member named 'is_real_nd_array' in 'octave_value'
>> >       } else if (out.is_matrix_type() || out.is_real_nd_array() ||
>> > out.is_numeric_type() ) {
>> >                                          ~~~ ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:1318:7:
>> > warning: indirection of non-volatile null pointer will be deleted, not
>> > trap
>> > [-Wnull-dereference]
>> >       *(int *) 0 = 0;
>> >       ^~~~~~~~~~
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:1318:7:
>> > note: consider using __builtin_trap() or qualifying pointer with
>> > 'volatile'
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:1508:14:
>> > warning: 'Octave_map' is deprecated [-Wdeprecated-declarations]
>> >       return Octave_map();
>> >              ^
>> >
>> > /usr/local/octave/3.8.0/include/octave-3.8.0/octave/../octave/oct-map.h:484:1:
>> > note: 'Octave_map' declared here
>> > Octave_map
>> > ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:1742:24:
>> > error: virtual function 'map_value' has a different return type
>> > ('Octave_map') than the function it overrides (which has return type
>> > 'octave_map')
>> >     virtual Octave_map map_value() const
>> >                        ^
>> > /usr/local/octave/3.8.0/include/octave-3.8.0/octave/ov-base.h:568:22:
>> > note:
>> > overridden virtual function is here
>> >   virtual octave_map map_value (void) const;
>> >                      ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:1742:13:
>> > warning: 'Octave_map' is deprecated [-Wdeprecated-declarations]
>> >     virtual Octave_map map_value() const
>> >             ^
>> >
>> > /usr/local/octave/3.8.0/include/octave-3.8.0/octave/../octave/oct-map.h:484:1:
>> > note: 'Octave_map' declared here
>> > Octave_map
>> > ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:2052:17:
>> > warning: 'varref' is deprecated [-Wdeprecated-declarations]
>> >   symbol_table::varref(name);
>> >                 ^
>> > /usr/local/octave/3.8.0/include/octave-3.8.0/octave/symtab.h:1322:3:
>> > note:
>> > 'varref' declared here
>> >   varref (const std::string& name, scope_id scope = xcurrent_scope,
>> >   ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11263:21:
>> > error: no member named 'begin_frame' in 'unwind_protect'
>> >     unwind_protect::begin_frame("SWIG_Octave_LoadModule");
>> >     ~~~~~~~~~~~~~~~~^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11264:5:
>> > error: use of undeclared identifier 'unwind_protect_int'
>> >     unwind_protect_int(error_state);
>> >     ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11265:5:
>> > error: use of undeclared identifier 'unwind_protect_int'
>> >     unwind_protect_int(warning_state);
>> >     ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11266:5:
>> > error: use of undeclared identifier 'unwind_protect_bool'
>> >     unwind_protect_bool(discard_error_messages);
>> >     ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11267:5:
>> > error: use of undeclared identifier 'unwind_protect_bool'
>> >     unwind_protect_bool(discard_warning_messages);
>> >     ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11282:21:
>> > error: no member named 'run_frame' in 'unwind_protect'
>> >     unwind_protect::run_frame("SWIG_Octave_LoadModule");
>> >     ~~~~~~~~~~~~~~~~^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11295:21:
>> > error: no member named 'begin_frame' in 'unwind_protect'
>> >     unwind_protect::begin_frame("SWIG_Octave_InstallFunction");
>> >     ~~~~~~~~~~~~~~~~^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11296:5:
>> > error: use of undeclared identifier 'unwind_protect_int'
>> >     unwind_protect_int(error_state);
>> >     ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11297:5:
>> > error: use of undeclared identifier 'unwind_protect_int'
>> >     unwind_protect_int(warning_state);
>> >     ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11298:5:
>> > error: use of undeclared identifier 'unwind_protect_bool'
>> >     unwind_protect_bool(discard_error_messages);
>> >     ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11299:5:
>> > error: use of undeclared identifier 'unwind_protect_bool'
>> >     unwind_protect_bool(discard_warning_messages);
>> >     ^
>> >
>> > /Users/Ian/slave/Octave-OSX/build/build/Octave/src/CoolPropOCTAVE_wrap.cxx:11318:21:
>> > error: no member named 'run_frame' in 'unwind_protect'
>> >     unwind_protect::run_frame("SWIG_Octave_InstallFunction");
>> >     ~~~~~~~~~~~~~~~~^
>> > 5 warnings and 15 errors generated.
>> > make[2]: *** [CMakeFiles/CoolProp.dir/src/CoolPropOCTAVE_wrap.cxx.o]
>> > Error 1
>> > make[1]: *** [CMakeFiles/CoolProp.dir/all] Error 2
>> > make: *** [all] Error 2
>> >
>> >
>> >
>> >
>> > ------------------------------------------------------------------------------
>> > Open source business process management suite built on Java and Eclipse
>> > Turn processes into business applications with Bonita BPM Community
>> > Edition
>> > Quickly connect people, data, and systems into organized workflows
>> > Winner of BOSSIE, CODIE, OW2 and Gartner awards
>> > http://p.sf.net/sfu/Bonitasoft
>> > _______________________________________________
>> > Swig-devel mailing list
>> > Swig-devel@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/swig-devel
>> >
>
>