[KPhotoAlbum] [PATCH] fix for compilation error

Jesper K. Pedersen blackie at blackie.dk
Sun Dec 24 10:42:35 GMT 2006


Thanks, I've applied the patch.

On Thursday 30 November 2006 11:35, Christophe Choumert wrote:
| 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'

-- 
Having trouble finding a given image in your collection containing
thousands of images?

http://www.kphotoalbum.org might be the answer.



More information about the Kphotoalbum mailing list