Visual Studio 2003 build

Christian Ehrlicher Ch.Ehrlicher at gmx.de
Tue Feb 14 23:26:54 CET 2006


Peter Kümmel schrieb:
> Bill Hoffman wrote:
>> Hi,  
>>
>> I am trying to build kdelibs with visual studio 2003.  I am using
>> the qtwin project: 
>>
>> http://sourceforge.net/projects/qtwin/
>>
>> And visual stuido 2003 professional with nmake.
>>
>> The first error, is from the deprecated stuff.
>>
>>
>> ===================================================================
>> --- kdemacros.h.cmake   (revision 509438)
>> +++ kdemacros.h.cmake   (working copy)
>> @@ -146,9 +146,6 @@
>>  # if defined(__GNUC__) && (__GNUC__ - 0 > 3 || (__GNUC__ - 0 == 3 && __GNUC_MIN
>> OR__ - 0 >= 2))
>>    /* gcc >= 3.2 */
>>  #  define KDE_DEPRECATED __attribute__ ((deprecated))
>> -# elif defined(_MSC_VER) && (_MSC_VER >= 1300) && (_MSC_VER < 1400)
>> -  /* msvc >= 7 */
>> -#  define KDE_DEPRECATED __declspec(deprecated)
>>  # else
>>  #  define KDE_DEPRECATED
>>  # endif
>>
>> Peter, is there a version of MSC that __declspec(deprecated) works for?
>> I get a syntax error for the places that use KDE_DEPRECATED if it is set to that.
>> BTW, on visual 2003, _MSC_VER == 1310.   Peter, can you check in a fix for this?
>>
> 
> When the 1310 also makes problems I remove it.
__declspec(deprecated) works fine but *not* when it's after the function
declaration which is the case in kdelibs/dcop/ ...

Christian

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20060214/ff4ab51e/attachment.pgp 


More information about the Kde-buildsystem mailing list