We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1101 - Win 7.1 SDK build dependency
Summary: Win 7.1 SDK build dependency
Status: RESOLVED INVALID
Alias: None
Product: SDL
Classification: Unclassified
Component: build (show other bugs)
Version: 2.0.0
Hardware: x86 Windows 7
: P2 blocker
Assignee: Sam Lantinga
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-22 19:52 UTC by Ken Rogoway
Modified: 2011-01-23 13:43 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Rogoway 2011-01-22 19:52:17 UTC
You cannot build SDL 1.3.0 under Visual Studio 2005 without installing the Windows 7.1 SDK.  If you install that SDK, you MUST get the Hotfix to get past "file corrupt" linker errors when building SDL test programs.  However, if you do this then you get "file corrupt" linker errors when linking with LIB files compiled without the hotfix.  This makes 3rd party LIB files incompatible.

Please consider a build option to remove the dependency on mscft.h and the functions in it that are used by SDL.
Comment 1 Sam Lantinga 2011-01-22 20:56:37 UTC
FYI, I'm building with the 7.0A SDK.  I don't know if that helps...
Comment 2 John Wilson 2011-01-23 04:20:44 UTC
I use the Windows 6.0 SDK with Visual Studio 2005 and I don't have any of those problems.
Comment 3 Jen Spradlin 2011-01-23 13:43:37 UTC
From Ken, using Visual Studio 2005:

I want to clear up some misinformation on this topic.  I had run into a lot of problems following another post that said to use the Windows 7.1 SDK. 

If you use the Windows 7.1 SDL with Visual Studio 2005, you will run into some major link issues.  You’ll get some “file corrupt” link errors.  Google and you will find there is a hotfix to get around this, but if you install the hotfix you will have problems with older libraries, so I’d recommend you don’t do that. 

It turns out that you can use the 6.0A or 7.0 SDK files to get SDL to compile under Windows.  There is no need for the 7.1 SDK.

Sam, consider this “bug” fixed, as it works fine with the Windows 6.0A SDK.

For anyone looking to get SDL 1.3.0 to compile with VS2005, make sure you add:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
to your Project Directories Include

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib
to your Project Directories Lib

These are under Tools/Options/Projects and Solutions/VC++ Directories