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: John W. Eaton
Subject: Re: QtHandles: Qt-based toolkit with uicontrol/uipanel support
Date: Mon, 10 Oct 2011 09:44:32 -0400

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:

diff --git a/src/Backend.cpp b/src/Backend.cpp
index 70fc634..9cccc97 100644
--- a/src/Backend.cpp
+++ b/src/Backend.cpp
@@ -29,6 +29,18 @@ along with Foobar.  If not, see 
<http://www.gnu.org/licenses/>.
 #include "ObjectFactory.h"
 #include "ObjectProxy.h"
 
+int
+main (void)
+{
+#if INTPTR_MAX == INT32_MAX
+  std::cerr << INTPTR_MAX << std::endl;
+  std::cerr << INT32_MAX << std::endl;
+#endif
+  return 0;
+}
+
+#if 0
+
 #if INTPTR_MAX == INT32_MAX
 # define OCTAVE_PTR_TYPE octave_uint32
 # define OCTAVE_INTPTR_TYPE uint32_t
@@ -198,3 +210,4 @@ ObjectProxy* Backend::toolkitObjectProxy (const 
graphics_object& go)
 //////////////////////////////////////////////////////////////////////////////
 
 };
+#endif

and then when I try to compile Backend.cpp, I see this:

g++ -c -m64 -pipe -I/usr/local/octave/dev/include/octave-3.5.0+/octave/.. 
-I/usr/local/octave/dev/include/octave-3.5.0+/octave 
-I/usr/local/octave/dev/include -I/usr/include/freetype2 -ggdb3 -g -Wall -W 
-D_REENTRANT -fPIC -DQT_WEBKIT -DQT_OPENGL_LIB -DQT_GUI_LIB -DQT_CORE_LIB 
-DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore 
-I/usr/include/qt4/QtGui -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4 
-I/usr/X11R6/include -I. -o Backend.o Backend.cpp
Backend.cpp: In function ‘int main()’:
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
make: *** [Backend.o] Error 1

jwe


reply via email to

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