On Monday 04 October 2004 19.14, Phil Thompson wrote: > On Monday 04 October 2004 1:00 pm, Fredrik Juhlin wrote: > > Hi, > > > > I'm having problems compiling the latest PyQt on a Debian stable box. > > > > When compiling the QTable wrapper I get the following output: > > > > make[2]: Entering directory > > `/usr/local/capsenv/compile/release/PyQt-commercial-3.13/qttable' > > g++ -c -pipe -fPIC -O2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG > > -DQT_THREAD_SUPPORT -I. -I/usr/local/capsenv/release/include/python2.3 > > -I/usr/local/capsenv/compile/release/qt-x11-commercial-3.3.3/include > > -I/usr/X11R6/include -o sipqttablepart0.o sipqttablepart0.cpp > > sipqttablepart0.cpp: In method `enum sipQTable::sipEditMode > > sipQTable::sipProtect_editMode()': > > sipqttablepart0.cpp:7857: static_cast from `QTable::EditMode' to > > `sipQTable::sipEditMode' > > sipqttablepart0.cpp:7858: warning: control reaches end of non-void > > function `sipQTable::sipProtect_editMode()' > > make[2]: *** [sipqttablepart0.o] Error 1 > > make[2]: Leaving directory > > `/usr/local/capsenv/compile/release/PyQt-commercial-3.13/qttable' > > make[1]: *** [all] Error 2 > > > > There is a slight delay (>4 seconds) between the warning and Make > > reporting an error. > > However, when I compile on a Gentoo box, I dont get an error. > > I'm using: > > > > PyQt 3.13 > > SIP 4.1.1 > > Qt 3.3.3 > > Python 2.3.3 > > GCC 2.95.4 (Debian) 3.3.4 (Gentoo) > > > > Could this be a problem with the GCC version? > > I think it probably is - there is an old Irix compiler that has a similar > problem. To verify, just convert the static_cast on the offending line to a > C-style cast. If so, I'll change the code generator to produce a C-style > cast. Yes, it compiles now. I got a similar error in sipqtsqlpart0.cpp, but I'm guessing that if you change the code generation, that will affect that code as well.
Thanks! //Fredrik _______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde
