Problem compiling with VS2008 Standard


#1

I am learning more about JUCE and decided to build Introjucer with Visual Studio 2008 Standard because I have it. I get this error:

c:\juce\modules\juce_graphics\juce_graphics.cpp(56) : fatal error C1083: Cannot open include file: 'd2d1.h': No such file or directory

I attached the build log (after changing the extension to .txt).

I was successful when I used 2008 Express.

I thought you should know.


#2

That's a Direct2D header. You need to install Direct2D or the Windows SDK.


#3

Same issue resolved today on Windows XP with vs2008-express and several versions of the SDK installed:

Open -Configuration properties|C/C++|General|Additional Include Directories- and add
\path\to\Windos\SDKs\v7.0A\Include

as suggested in this post:
http://blogs.msdn.com/b/windowssdk/archive/2009/10/20/new-samples-in-win-7-sdk-direct2d-and-directwrite.aspx