[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.
- QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Jordi Gutiérrez Hermoso, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Ben Abbott, 2011/10/09
- Message not available
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, John W. Eaton, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Martin Helm, 2011/10/09
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, John W. Eaton, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support,
Martin Helm <=
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, John W. Eaton, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Martin Helm, 2011/10/10
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Kai Habel, 2011/10/11
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/11
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Joaquim Luis, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/12
- Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support, Michael Goffioul, 2011/10/12