------ Build started: Project: Def Window Test, Configuration: Debug Win32 ------
Compiling...
stdafx.cpp
c:\program files\microsoft platform sdk for windows xp sp2\include\specstrings.h(334) : warning C4005: '__reserved' : macro redefinition
c:\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
c:\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
c:\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
c:\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
c:\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
c:\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
c:\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
c:\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
c:\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
c:\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
c:\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
c:\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
c:\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
c:\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
c:\program files\microsoft visual studio 8\vc\include\sal.h(529) : see previous definition of '__inout_bcount'
Compiling...
Def Window Test.cpp
Compiling resources...
Compiling manifest to resources...
Linking...
Embedding manifest...
Build log was saved at "file://c:\Reality 101\Initial Test Codes\Def Window Test\Debug\BuildLog.htm"
Def Window Test - 0 error(s), 15 warning(s)
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
Strange Warnings
Hi. I'm trying to set up Visual C++ Express 2005 with the Platform SDK for Windows XP SP2. I've followed the instructions as laid out on http://msdn.microsoft.com/vstudio/express/visualc/usingpsdk/, but when trying to compile the generic Windows application that C++ creates if I don't select "Empty Project", it gives me a list of warnings before succeeding:
Looks like it's a redefinition several times between the c++ defaults and the platform sdk files. But how can I fix this? I can't remove the "c:\program files\microsoft visual studio 8\vc\include\" files because then I lose access to iostream, among other things, which i need when I just want to test a small piece of code in console mode without going into a huge windows program.
Any ideas on how to fix this problem?
Thanks.
Shouldn't the SDK already come with the MSVS? If so then you don't need to redefine anything all the settings will be ok when youu install...
That's the thing though, Visual C++ Express only comes with the most basic libraries for console creation. Other than that, I need to use the Platform SDK to get files like windows.h and such.
hmm i just looked at http://msdn.microsoft.com/visualc/learning/vcexpvids/default.aspx and the video there said that the Windows 2003 Platform SDK is compatible... I don't know, is it going to be a problem to use it if I've got XP?
I'm basically willing to try anything to lose those 16 errors without a pragma to just ignore the problem.
I'm basically willing to try anything to lose those 16 errors without a pragma to just ignore the problem.
Did you change the SDK install directory? Both my computer and the instructions have the SDK listed under "C:\Program Files\Microsoft Platform SDK\", not "c:\program files\microsoft platform sdk for windows xp sp2\". If you didn't, I'm guessing you grabbed a wrong/"incompatible"* version somehow. If you follow the download link in step 2 of the instructions, the page title reads "Download details: Windows Server 2003 SP1 Platform SDK Web Install" - not XP SP2 or anything like that.
I've had no problems with that version of the SDK on my XP Home box.
(* I use "incompatible" in the loose sense here, in terms of "not targeted at the exact configuration of 2005 Express" - prehaps meant as an replacement/upgrade for 2005 Pro, 2003, or something along similar lines as that)
I've had no problems with that version of the SDK on my XP Home box.
(* I use "incompatible" in the loose sense here, in terms of "not targeted at the exact configuration of 2005 Express" - prehaps meant as an replacement/upgrade for 2005 Pro, 2003, or something along similar lines as that)
Ahh I've figured it out! It WAS the version of the Platform SDK. The Windows XP SP2 psdk doesn't seem to work out well with the current VC++ Express 2005. The Windows 2003 Server SP1 edition seems to work fine now.
It's default directory, by the way, is "Program Files\Microsoft Platform SDK"
Thanks though.
It's default directory, by the way, is "Program Files\Microsoft Platform SDK"
Thanks though.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement