octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support


From: Martin Helm
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Mon, 10 Oct 2011 16:13:16 +0200

Am Montag, den 10.10.2011, 09:44 -0400 schrieb John W. Eaton: 
> On 10-Oct-2011, Michael Goffioul wrote:
> 
> | On Mon, Oct 10, 2011 at 12:31 AM, Martin Helm <address@hidden> wrote:
> | > Ok, removing the #if #else in src/Backend.cpp such that all is defined
> | > as 64bit solved the compilation problem here on 64bit.
> | 
> | Thanks. Though It's unexpected that INTPTR_MAX == INT32_MAX on 64bits...
> | Any suggestion on why this is so is welcome :)
> 
> I tried to see what their values were by making the following change
> to Backend.cpp:
> 
> <snip> 
> Backend.cpp:36:16: error: ‘INTPTR_MAX’ was not declared in this scope
> Backend.cpp:37:16: error: ‘INT32_MAX’ was not declared in this scope


The whole problem here is that it simply does not work to include the
stdint.h C99 header into the C++ program.
The clean solution would be to #include <cstdint> instead, but that
means with the g++ compiler to pass the switch -std=c++0x otherwise this
header is not supported.
Maybe a less intrusive way is to simply check for __WORDSIZE == 32 (or
64) since that is defined as far as I can see.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]