[KPhotoAlbum] Compile failure with gcc-4.1.1

Christophe Choumert christophe.choumert at polytechnique.org
Mon Aug 7 03:44:02 BST 2006


Hello,

I get the following message on svn HEAD :
---
Making all in Exif
make[1]: Entering directory 
`/home/----/usr/src/KPhotoAlbum-src/kphotoalbum/Exif'
/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  -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -fno-builtin -g -O2 -fno-schedule-insns -fno-inline -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor -fno-reorder-blocks -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 
libexif_la.all_cpp.lo libexif_la.all_cpp.cpp
Info.cpp: In member function 'QMap<QString, QString> 
Exif::Info::infoForViewer(const QString&)':
Info.cpp:67: error: 'template<class T> class Exif::Settings' used without 
template parameters
Info.cpp: In member function 'QMap<QString, QString> 
Exif::Info::infoForDialog(const QString&)':
Info.cpp:72: error: 'template<class T> class Exif::Settings' used without 
template parameters
make[1]: *** [libexif_la.all_cpp.lo] Error 1
---

I spotted a Settings template class used in Exif/SearchDialog.cpp - I don't 
know where it comes from - which is confusing the compiler, since line 67 is 
obviously referring to the namespace Settings :
---
return info( fileName, Settings::SettingsData::instance()->exifForViewer(), 
false );
---

Thanks,
Christophe




More information about the Kphotoalbum mailing list