[KPhotoAlbum] [PATCH] fix for compilation error
Christophe Choumert
christophe.choumert at m4x.org
Thu Nov 30 10:35:11 GMT 2006
Hello,
I get the following with gcc 4.1.1 (ppc). The patch attached makes it
compile for me...
Cheers,
Chris
---
creating libViewer_la.all_cpp.cpp ...
/bin/sh ../../libtool --silent --tag=CXX --mode=compile
powerpc-unknown-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I../.. -I./.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I. -I/usr/kde/3.5/include -DQT_THREAD_SUPPORT -D_REENTRANT -DNDEBUG -DNO_DEBUG -O2 -fno-exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -fexceptions -DQT_NO_CAST_ASCII -DQT_CAST_NO_ASCII -c -o
libViewer_la.all_cpp.lo libViewer_la.all_cpp.cpp
/usr/kde/3.5/include/kapplication.h:149: error: reference to 'Display'
is ambiguous
/usr/qt/3/include/qwindowdefs.h:141: error: candidates are: typedef
struct _XDisplay Display
./../Viewer/Display.h:30: error: class Viewer::Display
/usr/kde/3.5/include/kapplication.h:149: error: expected `)' before '*'
token
/usr/kde/3.5/include/kapplication.h:176: error: reference to 'Display'
is ambiguous
/usr/qt/3/include/qwindowdefs.h:141: error: candidates are: typedef
struct _XDisplay Display
./../Viewer/Display.h:30: error: class Viewer::Display
/usr/kde/3.5/include/kapplication.h:176: error: expected `)' before '*'
token
/usr/kde/3.5/include/kapplication.h:858: error: reference to 'Display'
is ambiguous
/usr/qt/3/include/qwindowdefs.h:141: error: candidates are: typedef
struct _XDisplay Display
./../Viewer/Display.h:30: error: class Viewer::Display
/usr/kde/3.5/include/kapplication.h:858: error: ISO C++ forbids
declaration of 'Display' with no type
/usr/kde/3.5/include/kapplication.h:858: error: expected ';' before '*'
token
/usr/kde/3.5/include/kapplication.h:868: error: expected `;'
before 'void'
/usr/kde/3.5/include/kapplication.h:1109: error: reference to 'Display'
is ambiguous
/usr/qt/3/include/qwindowdefs.h:141: error: candidates are: typedef
struct _XDisplay Display
./../Viewer/Display.h:30: error: class Viewer::Display
/usr/kde/3.5/include/kapplication.h:1109: error: expected `)' before '*'
token
/usr/kde/3.5/include/kapplication.h:1117: error: reference to 'Display'
is ambiguous
/usr/qt/3/include/qwindowdefs.h:141: error: candidates are: typedef
struct _XDisplay Display
./../Viewer/Display.h:30: error: class Viewer::Display
/usr/kde/3.5/include/kapplication.h:1117: error: ISO C++ forbids
declaration of 'Display' with no type
/usr/kde/3.5/include/kapplication.h:1117: error: expected ';' before '*'
token
/usr/kde/3.5/include/kapplication.h:1203: error: reference to 'Display'
is ambiguous
/usr/qt/3/include/qwindowdefs.h:141: error: candidates are: typedef
struct _XDisplay Display
./../Viewer/Display.h:30: error: class Viewer::Display
/usr/kde/3.5/include/kapplication.h:1203: error: reference to 'Display'
is ambiguous
/usr/qt/3/include/qwindowdefs.h:141: error: candidates are: typedef
struct _XDisplay Display
./../Viewer/Display.h:30: error: class Viewer::Display
/usr/kde/3.5/include/kapplication.h:1203: error: 'Display' has not been
declared
/usr/kde/3.5/include/kapplication.h:1208: error: reference to 'Display'
is ambiguous
/usr/qt/3/include/qwindowdefs.h:141: error: candidates are: typedef
struct _XDisplay Display
./../Viewer/Display.h:30: error: class Viewer::Display
/usr/kde/3.5/include/kapplication.h:1208: error: reference to 'Display'
is ambiguous
/usr/qt/3/include/qwindowdefs.h:141: error: candidates are: typedef
struct _XDisplay Display
./../Viewer/Display.h:30: error: class Viewer::Display
/usr/kde/3.5/include/kapplication.h:1208: error: 'Display' has not been
declared
make[1]: *** [libViewer_la.all_cpp.lo] Error 1
make[1]: Leaving directory
`/home/krys/usr/src/graphics/kphotoalbum/Viewer'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compile.patch
Type: text/x-diff
Size: 877 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kphotoalbum/attachments/20061130/e690a726/attachment.patch>
More information about the Kphotoalbum
mailing list