[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46060] netcdf package: fails to build with oc
From: |
Mike Miller |
Subject: |
[Octave-bug-tracker] [bug #46060] netcdf package: fails to build with octave built with --enable-64 |
Date: |
Mon, 28 Mar 2016 22:10:27 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Update of bug #46060 (project octave):
Operating System: Microsoft Windows => Any
Summary: [octave forge] netcdf pacage fails to build with
octave 32 built with --enable-64 => netcdf package: fails to build with octave
built with --enable-64
_______________________________________________________
Follow-up Comment #5:
Actually the bug is that there actually is no constructor for octave_value
with an Array<int>.
The only reason this has ever worked by accident is because there is a
constructor for octave_value that takes an Array<octave_idx_type> which may be
either a 32-bit or 64-bit integer. You should not rely on that to coincide
with the type "int".
I am not at all familiar with the netcdf code or what the function is trying
to return, but maybe use one of Octave's sized integer types instead?
At a glance it looks like you need to pass a pointer to the underlying array
into the netcdf library. Maybe use an actual int array or vector, and have
some conditional logic that says if sizeof(int) is not equal to
sizeof(octave_int32) then copy the contents into an Array<octave_int64>?
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46060>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/