visual studio compile error

Peter Kümmel syntheticpp at gmx.net
Thu Feb 9 21:13:19 CET 2006


Bill Hoffman wrote:
> I am getting the following error when compiling with visual studio 2003:
> 
> 
> 
> kconfigskeleton.cpp
> c:\dev\KDE\kdelibs\kdecore\kconfigskeleton.h(493) : error C2144: syntax error :
> 'int' should be preceded by ';'
> c:\dev\KDE\kdelibs\kdecore\kconfigskeleton.h(493) : error C2208: 'int' : no memb
> ers defined using this type
> c:\dev\KDE\kdelibs\kdecore\kconfigskeleton.h(525) : fatal error C1903: unable to
>  recover from previous error(s); stopping compilation
> NMAKE : fatal error U1077: 'c:\PROGRA~1\MICROS~1.NET\Vc7\bin\cl.exe' : return co
> de '0x2'
> Stop.
> NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio .NET 2003\
> Vc7\bin\nmake.exe"' : return code '0x2'
> Stop.
> NMAKE : fatal error U1077: '"c:\Program Files\Microsoft Visual Studio .NET 2003\
> Vc7\bin\nmake.exe"' : return code '0x2'
> Stop.
> 
> Any ideas?   I preprocessed the file, and everything looked ok.  Peter, have
> you seen this?  Do you have a fix?
> 
> Thanks.
> 
> -Bill
> 

Hi Bill,

this is line 493:

  typedef ItemLongLong ItemInt64 KDE_DEPRECATED;

And it's the KDE_DEPRECATED macro which I have disabled for
_MSC_VER<=1400 in kdelibs/kdemakros.h.cmake

You are using 1310 and so KDE_DEPRECATED is __dellpec(deprecated).

Seems this deprecated is new, or you are the first one who tries
it with net 2003.

Disable the definition in the macro or in the generated header,
and it should compile.

Cheers,
Peter






More information about the Kde-buildsystem mailing list