[KPhotoAlbum] Compile error: "reference to 'MainWindow' is ambiguous"

Jesper K. Pedersen blackie at blackie.dk
Sat Jun 3 19:38:54 CEST 2006


OK, it seems like I finally got the last bullet regarding naming a namespace 
and a class in the namespace the same :-/

Please try one of the snapshots, this was added after the snapshot.

Cheers
Jesper.

On Saturday 03 June 2006 13:07, Rui Malheiro wrote:
| Hi all,
|
| First things first. Thanks for a very useful program. I've been using
| kimdaba/kphotoalbum to efficiently manage a growing collection of photos
| (over 7.000, mostly film scans) and now that I'm upgrading my SLR to
| digital I'll really need the improved EXIF support. As my distribution
| (SUSE 10.1) does't include exiv2 support I'll have to compile from SVN. And
| that's what brings me here. (BTW, anyone know of an apt repository for SUSE
| that has kphotoalbum with exif support?)
|
| I did checkout, make -f Makefile.cvs and ./configure with zero errors, but
| then make fails with the following output:
|
| =============== start make output ====================
| {...]
| compiling
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.cpp g++
| -DHAVE_CONFIG_H -I./kphotoalbum/MainWindow
| -I/data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow -I.
| -I/data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/.. -I/opt/kde3/include
| -I/usr/lib/qt3/include -I/usr/X11R6/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 -O2
| -Wformat-security -Wmissing-format-attribute -Wno-non-virtual-dtor
| -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 -fPIC -DPIC
| -c /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.cpp
| -o ./kphotoalbum/MainWindow/.libs/HtmlExportDialog.o
| -Wp,-MD,./kphotoalbum/MainWindow/.deps/HtmlExportDialog.TUlo
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.moc:22:
| error: reference to 'MainWindow' is ambiguous
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.h:34:
| error: candidates are: namespace MainWindow { }
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/../MainWindow/MainWindow.h
|:78: error:                 class MainWindow::MainWindow
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.moc:27:
| error: reference to 'MainWindow' is ambiguous
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.h:34:
| error: candidates are: namespace MainWindow { }
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/../MainWindow/MainWindow.h
|:78: error:                 class MainWindow::MainWindow
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.moc:28:
| error: reference to 'MainWindow' is ambiguous
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.h:34:
| error: candidates are: namespace MainWindow { }
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/../MainWindow/MainWindow.h
|:78: error:                 class MainWindow::MainWindow
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.moc:50:
| error: reference to 'MainWindow' is ambiguous
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.h:34:
| error: candidates are: namespace MainWindow { }
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/../MainWindow/MainWindow.h
|:78: error:                 class MainWindow::MainWindow
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.moc:78:
| error: reference to 'MainWindow' is ambiguous
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.h:34:
| error: candidates are: namespace MainWindow { }
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/../MainWindow/MainWindow.h
|:78: error:                 class MainWindow::MainWindow
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.moc:87:
| error: reference to 'MainWindow' is ambiguous
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.h:34:
| error: candidates are: namespace MainWindow { }
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/../MainWindow/MainWindow.h
|:78: error:                 class MainWindow::MainWindow
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.moc:100:
| error: reference to 'MainWindow' is ambiguous
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.h:34:
| error: candidates are: namespace MainWindow { }
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/../MainWindow/MainWindow.h
|:78: error:                 class MainWindow::MainWindow
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.moc:106:
| error: reference to 'MainWindow' is ambiguous
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.h:34:
| error: candidates are: namespace MainWindow { }
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/../MainWindow/MainWindow.h
|:78: error:                 class MainWindow::MainWindow
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.moc:111:
| error: reference to 'MainWindow' is ambiguous
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/HtmlExportDialog.h:34:
| error: candidates are: namespace MainWindow { }
| /data/cvs/KPhotoAlbum-src/kphotoalbum/MainWindow/../MainWindow/MainWindow.h
|:78: error:                 class MainWindow::MainWindow
| Error creating ./kphotoalbum/MainWindow/HtmlExportDialog.lo. Exit status 1.
| make: *** [all] Error 1
| =============== end make output ====================
|
| I'm using gcc-4.1.0 and kde-3.5.2.

-- 
Jesper K. Pedersen          |  Klarälvdalens Datakonsult
Senior Software Engineer    |  www.klaralvdalens-datakonsult.se
Prinsensgade 4a st.         |
9800 Hjørring               |  Platform-independent
Denmark                     |  software solutions



More information about the KPhotoAlbum mailing list