On Monday 23 January 2006 14:04, Christian Ehrlicher wrote: > Because this is a redefinition on windows (it's defined in > kdelibs/win/include/kdelibs_global_win.h) Wow, what an evil define. that should be removed. > But why do you need to export the main function? It doesn't make sense for > me... Its the symbol that is resolved by kdeinit in order to start a kdeinit module. It has to be extern "C" (so that it isn't mangled) and it has to be exported, otherwise dlsym() can't find it. -- Dirk//\