kde4init_dummy.cpp.in
Peter Kümmel
syntheticpp at gmx.net
Thu Feb 2 22:44:16 CET 2006
How does the code fore the dummy main work?
Currently compiling with cmake break because kdemain is defined as a macro
(which looks like a hack, because it's not upper case) in kdelibs_global_win.h.
this macro can't compile with the dummy code from kde4init_dummy.cpp.in:
extern "C" int kdemain(int argc, char* argv[]);
extern "C" int kdeinitmain(int argc, char* argv[]) { return kdemain(argc,argv); }
int main(int argc, char* argv[]) { return kdemain(argc,argv); }
Is it necessary to add a version for win?
Peter
here the errors:
Building CXX object dcop/CMakeFiles/dcopserver.dir/dcopserver_dummy.obj
C:\PROGRA~1\MID05A~1\VC\bin\cl.exe @c:\Temp\nm460.tmp
dcopserver_dummy.cpp
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(1) : error C2144: syntax erro
r : 'void' should be preceded by ';'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(1) : error C4430: missing typ
e specifier - int assumed. Note: C++ does not support default-int
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(1) : error C2144: syntax erro
r : 'void' should be preceded by ';'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(1) : error C4430: missing typ
e specifier - int assumed. Note: C++ does not support default-int
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(1) : error C2086: 'int KDE_IM
PORT' : redefinition
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(1) : see declaration
of 'KDE_IMPORT'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(2) : error C2144: syntax erro
r : 'int' should be preceded by ')'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(2) : error C2660: 'kde_start'
: function does not take 0 arguments
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(2) : error C2059: syntax erro
r : ')'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(2) : error C2144: syntax erro
r : 'void' should be preceded by ';'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(2) : error C2144: syntax erro
r : 'void' should be preceded by ';'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(2) : error C2601: 'main' : lo
cal function definitions are illegal
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(2): this line contain
s a '{' which has not yet been matched
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(2) : error C2078: too many in
itializers
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(2) : error C2440: 'initializi
ng' : cannot convert from 'char *[]' to 'int'
There is no context in which this conversion is possible
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3) : error C2084: function 'i
nt main(int,char **)' already has a body
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(1) : see previous def
inition of 'main'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3) : error C2144: syntax erro
r : 'int' should be preceded by ')'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3) : error C2660: 'kde_start'
: function does not take 0 arguments
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3) : error C2059: syntax erro
r : ')'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3) : error C2144: syntax erro
r : 'void' should be preceded by ';'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3) : error C2144: syntax erro
r : 'void' should be preceded by ';'
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3) : error C2601: 'main' : lo
cal function definitions are illegal
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3): this line contain
s a '{' which has not yet been matched
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3) : error C2078: too many in
itializers
C:\sandbox\kdelibs\build\dcop\dcopserver_dummy.cpp(3) : error C2440: 'initializi
ng' : cannot convert from 'char *[]' to 'int'
There is no context in which this conversion is possible
NMAKE : fatal error U1077: 'C:\PROGRA~1\MID05A~1\VC\bin\cl.exe' : return code '0
x2'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 8\VC\BIN\nmake
.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 8\VC\BIN\nmake
.exe"' : return code '0x2'
Stop.
More information about the Kde-buildsystem
mailing list