Jump to content
  • Advertisement
Sign in to follow this  
ukdeveloper

Problems setting up VC++ 2005 Beta w/ Platform SDK

This topic is 4862 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I've got the MS Visual C++ 2005 Express Beta 2 downloaded and installed. I've got the platform SDK installed, but when I follow MS's instructions about setting it all up, I get to the point of running the sample Win32 program to check it's all working (the final step). Thing is, it isn't. I get the following errors:
1>Command line warning D4002 : ignoring unknown option '/errorReport:prompt'
1>Command line warning D4024 : unrecognized source file type ' ■/', object file assumed
1>LINK : fatal error LNK1181: cannot open input file " ■/.obj"




The &9632; appears as a black square in the VC++ output window - it just gets parsed here for some reason. Here's my VCProjectEngine.Dll.Express XML config file:
<?xml version="1.0" encoding="utf-8"?>
<VCPlatformConfigurationFile 
	Version="8.00"
	>
    <Platform 
		Name="VCProjectEngine.dll" 
		Identifier="Win32"
		>
		<Directories 
			Include="$(VCInstallDir)include;$(VCInstallDir)PlatformSDK\include;$(FrameworkSDKDir)include;$"C:\Program Files\Microsoft SDK\include";"
			Library="$(VCInstallDir)lib;$(VCInstallDir)PlatformSDK\lib;$(FrameworkSDKDir)lib;$(VSInstallDir);$(VSInstallDir)lib;$"C:\Program Files\Microsoft SDK\lib";"
			Path="$(VCInstallDir)bin;$(VCInstallDir)PlatformSDK\bin;$(VSInstallDir)Common7\Tools\bin;$(VSInstallDir)Common7\tools;$(VSInstallDir)Common7\ide;$(ProgramFiles)\HTML Help Workshop;$(FrameworkSDKDir)bin;$(FrameworkDir)$(FrameworkVersion);$(VSInstallDir);$(PATH);$"C:\Program Files\Microsoft SDK\Bin";"
			Reference="$(FrameworkDir)$(FrameworkVersion)"
			Source="$(VCInstallDir)crt\src"
		/>
    </Platform>
</VCPlatformConfigurationFile>




I suspect the problem is in there, but I'm not too sure. Thanks in advance for your help, my ultimate aim is to get SDL/Direct X working with it (I'll probably post here again asking for help with that :D). Thanks, ukdeveloper.

Share this post


Link to post
Share on other sites
Advertisement
UPDATE: I've reinstalled this and the Platform SDK, and now I get the same error when compiling Hello World as a Win32 Console project.

What is happening??!

Share this post


Link to post
Share on other sites
Quote:
$"C:\Program Files\Microsoft SDK\Bin";

should be
Quote:
C:\Program Files\Microsoft SDK\Bin;

etc.

The $ sign is for variable expansion, and an absolute path is no variable, also, AFAIK, the quotation marks aren't neccessary since the paths are separated by semicolons.

Share this post


Link to post
Share on other sites

@ukdeveloper,

please would you post your fixed VCProjectEngine.Dll.Express, (see my post in the directx forum), I've been having trouble with finding windows.h.

Thanks in advance
Steven

Share this post


Link to post
Share on other sites
This works for me:


<?xml version="1.0" encoding="utf-8"?>
<VCPlatformConfigurationFile
Version="8.00"
>
<Platform
Name="VCProjectEngine.dll"
Identifier="Win32"
>
<Directories
Include="$(VCInstallDir)include;$(VCInstallDir)PlatformSDK\include;$(FrameworkSDKDir)include;C:\Program Files\Microsoft Platform SDK\Include"
Library="$(VCInstallDir)lib;$(VCInstallDir)PlatformSDK\lib;$(FrameworkSDKDir)lib;$(VSInstallDir);$(VSInstallDir)lib;C:\Program Files\Microsoft Platform SDK\Lib"
Path="$(VCInstallDir)bin;$(VCInstallDir)PlatformSDK\bin;$(VSInstallDir)Common7\Tools\bin;$(VSInstallDir)Common7\tools;$(VSInstallDir)Common7\ide;$(ProgramFiles)\HTML Help Workshop;$(FrameworkSDKDir)bin;$(FrameworkDir)$(FrameworkVersion);$(VSInstallDir);$(PATH);C:\Program Files\Microsoft Platform SDK\Bin"
Reference="$(FrameworkDir)$(FrameworkVersion)"
Source="$(VCInstallDir)crt\src"
/>
</Platform>
</VCPlatformConfigurationFile>





Bugger to set up, isn't it?

Share this post


Link to post
Share on other sites
I had to copy the platform directory into the /VC directory and rename it to 'PlatformSDK'. That worked for me, unfortunately I can't get it to link properly whenever I need to add an external library. Oh well.

Share this post


Link to post
Share on other sites
I can't use any windows stuff, this is the sdame for any windows libs, like user32 or winspool etc. The only lib I seem to be able to use is kernel32.lib, with $(NOINHERIT) (thats in properties > linker. I can use <iostream> (#include), and things like stdio.h cstdlib etc, so I guess its just no windows stuff.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!