[Ipe-discuss] Compiling with gcc 4

Johan Ingvast ingvast at md.kth.se
Thu Dec 1 16:12:52 CET 2005


Hi
I'd like to give a hint for compiling ipe with gcc version 4 (e.g Fedora4).
It seem like gcc 4 is stricter than gcc 3 and generates a warning when 
compiling.
Therefore one has to change one line in src/config.pri. You find the 
line in the last lines and it should be

	linux-g++:QMAKE_CXXFLAGS_WARN_ON +=

I guess the line can be taken away alltogether, but I have not tried.




Now for Otfrid.  Maybe you can change the code such that gcc does not 
give the warning. This is the first halt of make


make[1]: Entering directory `/tmp/ipe-6.0pre25/src/ipecanvas'
g++ -c -pipe -O2 -D_REENTRANT -Wall -W -Werror -fPIC 
-DQT_NO_CAST_FROM_ASCII -DQT3_SUPPORT -DQT_NO_DEBUG -DQT_CORE_LIB 
-DQT_GUI_LIB -DQT_SHARED 
-I/usr/local/Trolltech/Qt-4.0.1/mkspecs/linux-g++ -I. 
-I/usr/local/Trolltech/Qt-4.0.1/include/QtGui 
-I/usr/local/Trolltech/Qt-4.0.1/include/QtCore 
-I/usr/local/Trolltech/Qt-4.0.1/include -I../include 
-I/usr/include/freetype2 -I../../build/moc/ipecanvas 
-I../../build/ui/ipe -o ../../build/obj/ipecanvas/ipecanvas.o ipecanvas.cpp
cc1plus: warnings being treated as errors
ipefonts.h:53: warning: 'class IpeFontsServices' has virtual functions 
but non-virtual destructor
ipecanvas.h:63: warning: 'class IpeCanvasServices' has virtual functions 
but non-virtual destructor
ipeoverlay.h:83: warning: 'class IpeOverlayServices' has virtual 
functions but non-virtual destructor

Obs! Ipe pre23 had the same problem.

/johan



More information about the Ipe-discuss mailing list