On Friday 04 January 2008, Sebastian Sauer wrote: > Magnuson Ron wrote: > > -------------------------------------------------------- > > Martin Wrote: > > > > I cannot compile KOffice. Here is the error message: > > > > if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ > > -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../lib/kross > > -I../../../lib/kross -I/usr/include/kde -I/usr/lib/qt-3.3/include > > -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -Wno-long-long > > -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align > > -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 -DHAVE_KNEWSTUFF > > -fexceptions -MT qtobject.lo -MD -MP -MF ".deps/qtobject.Tpo" -c -o > > qtobject.lo qtobject.cpp; \ > > then mv -f ".deps/qtobject.Tpo" ".deps/qtobject.Plo"; else rm -f > > ".deps/qtobject.Tpo"; exit 1; fi > > In file included from qtobject.cpp:25: > > ../main/manager.h:163: error: visibility arg must be one of "default", > > "hidden", "protected" or "internal" > > -------------------------------------------------------- > > > > I had the same issue when compiling the code. > > I found if I removed KDE_EXPORT from the following > > lines in the listed files, the code compiled and > > programs seam to work correctly. > > Interesting error-message since it somewhat indicates, that KDE_EXPORT is > defined but does contain a wrong value :-/ > > Maybe it would be an idea to add something like this; ups... change #ifdef to #ifdef KDE_EXPORT sorry, maybe time for me to go back to bed and sleep some hours more :) > #ifdef KDE_EXPORT > #undef KDE_EXPORT > #define KDE_EXPORT __attribute__ ((visibility("default"))) > #else > #error Bah, the export-macro isn't defined for whatever reason. > #endif > > at the top of the manager.h class to see if I am really right here re the > export-prob. > > Also it may useful to know what gcc-version was used. > ____________________________________ > koffice mailing list > koffice@kde.org > To unsubscribe please visit: > https://mail.kde.org/mailman/listinfo/koffice ____________________________________ koffice mailing list koffice@kde.org To unsubscribe please visit: https://mail.kde.org/mailman/listinfo/koffice