By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,853 Members | 1,570 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,853 IT Pros & Developers. It's quick & easy.

Platform SDK for Visual Studio 2005

P: n/a
I am currently migrating my Visual C++ 6.0 applications to Visual Studio
2005. I am getting compiler errors involving the VS2005's platform SDK.
When I removed directory references to that SDK, and started using the
Microsoft Platform SDK for XP SP2, the errors disappeared, but I am now
getting numerous warnings (macro redefinitions) as follows:

StdAfx.cpp
WINVER not defined. Defaulting to 0x0502 (Windows Server 2003)
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(334) : warning C4005: '__reserved' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(702) :
see previous definition of '__reserved'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(341) : warning C4005: '__checkReturn' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(703) :
see previous definition of '__checkReturn'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(344) : warning C4005: '__typefix' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(704) :
see previous definition of '__typefix'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(349) : warning C4005: '__override' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(705) :
see previous definition of '__override'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(350) : warning C4005: '__fallthrough' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(714) :
see previous definition of '__fallthrough'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(351) : warning C4005: '__callback' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(706) :
see previous definition of '__callback'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(352) : warning C4005: '__in' : macro redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(499) :
see previous definition of '__in'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(353) : warning C4005: '__out' : macro redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(508) :
see previous definition of '__out'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(354) : warning C4005: '__inout' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(527) :
see previous definition of '__inout'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(356) : warning C4005: '__out_ecount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(509) :
see previous definition of '__out_ecount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(357) : warning C4005: '__in_ecount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(500) :
see previous definition of '__in_ecount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(358) : warning C4005: '__inout_ecount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(528) :
see previous definition of '__inout_ecount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(359) : warning C4005: '__out_bcount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(510) :
see previous definition of '__out_bcount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(360) : warning C4005: '__in_bcount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(501) :
see previous definition of '__in_bcount'
C:\Program Files\Microsoft Platform SDK for Windows XP
SP2\Include\specstrings.h(361) : warning C4005: '__inout_bcount' : macro
redefinition
G:\Program Files\Microsoft Visual Studio 8\VC\include\sal.h(529) :
see previous definition of '__inout_bcount'

How do I remove the warnings?

Marathoner
Jul 3 '07 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.