|
From: | John W. Eaton |
Subject: | Re: [MXE] Building 64-b indexing Windows binary fails at nsis /, scons |
Date: | Fri, 18 Jul 2014 16:09:52 -0400 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 |
On 07/18/2014 06:17 AM, PhilipNienhuis wrote:
But building Octave stops with: : /home/philip/devel/octdev/mxe/mxe201407/tmp-octave/octave-4.1.0+/libgui/graphics /QtHandlesUtils.cc: In function 'QImage QtHandles::Utils::makeImageFromCData(con st octave_value&, int, int)': /home/philip/devel/octdev/mxe/mxe201407/tmp-octave/octave-4.1.0+/libgui/graphics /QtHandlesUtils.cc:223:33: error: no matching function for call to 'qMin(octave_ idx_type&, int&)' int w = qMin (dv(1), width);
Since dv(1) is an octave_idx_type object which can be either 32 or 64 bits, we need a cast for width so that it is the same type:
qMin (dv(1), static_cast<octave_idx_type> (width)); and maybe w needs to also be an octave_idx_type object? jwe
[Prev in Thread] | Current Thread | [Next in Thread] |