locked
Compilation Errors with 'Simple Direct3D 11.1 Game Sample'

    Question

  • I'm trying to compile and run the sample Direct3d game that is part of the metro sample apps pack and I am getting numerous compile errors. I am quite rusty on C++ and can't seem to see what the problem is here.

    Just to clarify I have Windows Dev Preview with dev tools installed and I have also installed the June 2010 DirectX SDK, the compiler output is as follows:

    1>------ Build started: Project: Simple3DGame, Configuration: Debug Win32 ------
    1>Build started 2/12/2012 2:48:33 PM.
    1>GetInstalledSDKLocations:
    1>  Searching for SDKs targeting "Windows, 8.0".
    1>ResolveSDKReferences:
    1>    Reading SDK manifest file "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.VCLibs\11.0\SDKManifest.xml".
    1>    Targeted configuration and architecture "Debug|x86"
    1>    Could not find "FrameworkIdentity" attribute "FrameworkIdentity-Debug-x86" in the SDK manifest.
    1>    Found "FrameworkIdentity" attribute "Name = Microsoft.VCLibs.110.Debug, MinVersion = 11.0.0.0" in the SDK manifest.
    1>    Found "APPX" location attribute ".\AppX\Debug\x86\Microsoft.VCLibs.x86.Debug.11.appx" in the SDK manifest.
    1>ExpandSDKReferences:
    1>  Expanding SDK Reference "Microsoft.VCLibs, Version=11.0" from "C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0\ExtensionSDKs\Microsoft.VCLibs\11.0\".
    1>  Adding reference assembly "References\CommonConfiguration\Neutral\platform.winmd".
    1>InitializeBuildStatus:
    1>  Touching "Debug\Simple3DGame.unsuccessfulbuild".
    1>FxCompile:
    1>Skipping target "FxCompile" because all output files are up-to-date with respect to the input files.
    1>FxCompile:
    1>Skipping target "FxCompile" because all output files are up-to-date with respect to the input files.
    1>ClCompile:
    1>  DirectXStereo.cpp
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(12): warning C4005: 'DXGI_STATUS_OCCLUDED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47881) : see previous definition of 'DXGI_STATUS_OCCLUDED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(13): warning C4005: 'DXGI_STATUS_CLIPPED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47890) : see previous definition of 'DXGI_STATUS_CLIPPED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(14): warning C4005: 'DXGI_STATUS_NO_REDIRECTION' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47899) : see previous definition of 'DXGI_STATUS_NO_REDIRECTION'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(15): warning C4005: 'DXGI_STATUS_NO_DESKTOP_ACCESS' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47908) : see previous definition of 'DXGI_STATUS_NO_DESKTOP_ACCESS'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(16): warning C4005: 'DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47917) : see previous definition of 'DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(17): warning C4005: 'DXGI_STATUS_MODE_CHANGED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47926) : see previous definition of 'DXGI_STATUS_MODE_CHANGED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(18): warning C4005: 'DXGI_STATUS_MODE_CHANGE_IN_PROGRESS' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47935) : see previous definition of 'DXGI_STATUS_MODE_CHANGE_IN_PROGRESS'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(21): warning C4005: 'DXGI_ERROR_INVALID_CALL' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47950) : see previous definition of 'DXGI_ERROR_INVALID_CALL'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(22): warning C4005: 'DXGI_ERROR_NOT_FOUND' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47959) : see previous definition of 'DXGI_ERROR_NOT_FOUND'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(23): warning C4005: 'DXGI_ERROR_MORE_DATA' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47968) : see previous definition of 'DXGI_ERROR_MORE_DATA'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(24): warning C4005: 'DXGI_ERROR_UNSUPPORTED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47977) : see previous definition of 'DXGI_ERROR_UNSUPPORTED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(25): warning C4005: 'DXGI_ERROR_DEVICE_REMOVED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47986) : see previous definition of 'DXGI_ERROR_DEVICE_REMOVED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(26): warning C4005: 'DXGI_ERROR_DEVICE_HUNG' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(47995) : see previous definition of 'DXGI_ERROR_DEVICE_HUNG'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(27): warning C4005: 'DXGI_ERROR_DEVICE_RESET' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48005) : see previous definition of 'DXGI_ERROR_DEVICE_RESET'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(28): warning C4005: 'DXGI_ERROR_WAS_STILL_DRAWING' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48014) : see previous definition of 'DXGI_ERROR_WAS_STILL_DRAWING'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(29): warning C4005: 'DXGI_ERROR_FRAME_STATISTICS_DISJOINT' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48024) : see previous definition of 'DXGI_ERROR_FRAME_STATISTICS_DISJOINT'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(30): warning C4005: 'DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48033) : see previous definition of 'DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(31): warning C4005: 'DXGI_ERROR_DRIVER_INTERNAL_ERROR' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48043) : see previous definition of 'DXGI_ERROR_DRIVER_INTERNAL_ERROR'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(32): warning C4005: 'DXGI_ERROR_NONEXCLUSIVE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48052) : see previous definition of 'DXGI_ERROR_NONEXCLUSIVE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(33): warning C4005: 'DXGI_ERROR_NOT_CURRENTLY_AVAILABLE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48061) : see previous definition of 'DXGI_ERROR_NOT_CURRENTLY_AVAILABLE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(34): warning C4005: 'DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48071) : see previous definition of 'DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\dxgitype.h(35): warning C4005: 'DXGI_ERROR_REMOTE_OUTOFMEMORY' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48080) : see previous definition of 'DXGI_ERROR_REMOTE_OUTOFMEMORY'
    1>c:\program files (x86)\windows kits\8.0\include\shared\dxgi1_2.h(887): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\shared\dxgi1_2.h(887): error C2143: syntax error : missing ',' before '*'
    1>c:\program files (x86)\windows kits\8.0\include\shared\dxgi1_2.h(891): error C2061: syntax error : identifier 'DXGI_RGBA'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(59): warning C4005: 'D2DERR_WRONG_STATE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48282) : see previous definition of 'D2DERR_WRONG_STATE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(64): warning C4005: 'D2DERR_NOT_INITIALIZED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48291) : see previous definition of 'D2DERR_NOT_INITIALIZED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(69): warning C4005: 'D2DERR_UNSUPPORTED_OPERATION' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48300) : see previous definition of 'D2DERR_UNSUPPORTED_OPERATION'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(74): warning C4005: 'D2DERR_SCANNER_FAILED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48309) : see previous definition of 'D2DERR_SCANNER_FAILED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(79): warning C4005: 'D2DERR_SCREEN_ACCESS_DENIED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48318) : see previous definition of 'D2DERR_SCREEN_ACCESS_DENIED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(84): warning C4005: 'D2DERR_DISPLAY_STATE_INVALID' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48327) : see previous definition of 'D2DERR_DISPLAY_STATE_INVALID'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(89): warning C4005: 'D2DERR_ZERO_VECTOR' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48336) : see previous definition of 'D2DERR_ZERO_VECTOR'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(97): warning C4005: 'D2DERR_INTERNAL_ERROR' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48345) : see previous definition of 'D2DERR_INTERNAL_ERROR'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(103): warning C4005: 'D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48354) : see previous definition of 'D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(108): warning C4005: 'D2DERR_INVALID_CALL' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48363) : see previous definition of 'D2DERR_INVALID_CALL'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(113): warning C4005: 'D2DERR_NO_HARDWARE_DEVICE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48372) : see previous definition of 'D2DERR_NO_HARDWARE_DEVICE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(119): warning C4005: 'D2DERR_RECREATE_TARGET' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48381) : see previous definition of 'D2DERR_RECREATE_TARGET'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(124): warning C4005: 'D2DERR_TOO_MANY_SHADER_ELEMENTS' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48390) : see previous definition of 'D2DERR_TOO_MANY_SHADER_ELEMENTS'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(129): warning C4005: 'D2DERR_SHADER_COMPILE_FAILED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48399) : see previous definition of 'D2DERR_SHADER_COMPILE_FAILED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(134): warning C4005: 'D2DERR_MAX_TEXTURE_SIZE_EXCEEDED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48408) : see previous definition of 'D2DERR_MAX_TEXTURE_SIZE_EXCEEDED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(139): warning C4005: 'D2DERR_UNSUPPORTED_VERSION' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48417) : see previous definition of 'D2DERR_UNSUPPORTED_VERSION'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(144): warning C4005: 'D2DERR_BAD_NUMBER' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48426) : see previous definition of 'D2DERR_BAD_NUMBER'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(149): warning C4005: 'D2DERR_WRONG_FACTORY' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48435) : see previous definition of 'D2DERR_WRONG_FACTORY'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(154): warning C4005: 'D2DERR_LAYER_ALREADY_IN_USE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48444) : see previous definition of 'D2DERR_LAYER_ALREADY_IN_USE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(159): warning C4005: 'D2DERR_POP_CALL_DID_NOT_MATCH_PUSH' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48453) : see previous definition of 'D2DERR_POP_CALL_DID_NOT_MATCH_PUSH'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(164): warning C4005: 'D2DERR_WRONG_RESOURCE_DOMAIN' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48462) : see previous definition of 'D2DERR_WRONG_RESOURCE_DOMAIN'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(169): warning C4005: 'D2DERR_PUSH_POP_UNBALANCED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48471) : see previous definition of 'D2DERR_PUSH_POP_UNBALANCED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(174): warning C4005: 'D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48480) : see previous definition of 'D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(179): warning C4005: 'D2DERR_INCOMPATIBLE_BRUSH_TYPES' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48489) : see previous definition of 'D2DERR_INCOMPATIBLE_BRUSH_TYPES'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(184): warning C4005: 'D2DERR_WIN32_ERROR' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48498) : see previous definition of 'D2DERR_WIN32_ERROR'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(189): warning C4005: 'D2DERR_TARGET_NOT_GDI_COMPATIBLE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48507) : see previous definition of 'D2DERR_TARGET_NOT_GDI_COMPATIBLE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(194): warning C4005: 'D2DERR_TEXT_EFFECT_IS_WRONG_TYPE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48516) : see previous definition of 'D2DERR_TEXT_EFFECT_IS_WRONG_TYPE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(201): warning C4005: 'D2DERR_TEXT_RENDERER_NOT_RELEASED' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48525) : see previous definition of 'D2DERR_TEXT_RENDERER_NOT_RELEASED'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2derr.h(206): warning C4005: 'D2DERR_EXCEEDS_MAX_BITMAP_SIZE' : macro redefinition
    1>          c:\program files (x86)\windows kits\8.0\include\shared\winerror.h(48534) : see previous definition of 'D2DERR_EXCEEDS_MAX_BITMAP_SIZE'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(58): error C2146: syntax error : missing ';' before identifier 'D2D1_RECT_L'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(58): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(58): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(59): error C2146: syntax error : missing ';' before identifier 'D2D1_POINT_2L'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(59): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(293): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(294): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(295): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_CUBIC' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(296): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_MULTI_SAMPLE_LINEAR' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(297): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_ANISOTROPIC' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(298): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_HIGH_QUALITY_CUBIC' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(480): error C2146: syntax error : missing ';' before identifier 'D2D1_VECTOR_2F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(480): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(480): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(481): error C2146: syntax error : missing ';' before identifier 'D2D1_VECTOR_3F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(481): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(481): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(482): error C2146: syntax error : missing ';' before identifier 'D2D1_VECTOR_4F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(482): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(482): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(581): error C2146: syntax error : missing ';' before identifier 'D2D1_MATRIX_4X3_F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(581): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(581): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(582): error C2146: syntax error : missing ';' before identifier 'D2D1_MATRIX_4X4_F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(582): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(582): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(583): error C2146: syntax error : missing ';' before identifier 'D2D1_MATRIX_5X4_F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(583): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(583): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(819): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(819): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(820): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(820): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(844): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(844): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(845): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(845): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(876): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(876): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(877): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(877): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1012): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1012): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1013): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1013): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1039): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1039): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1040): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1040): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1066): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1066): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1067): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1067): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1119): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1119): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1120): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1120): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1145): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1145): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1146): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1146): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1160): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1160): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1161): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1161): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1214): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1214): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1215): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1215): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1503): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1503): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1504): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1504): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1581): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1581): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1582): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1582): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1634): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1634): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1635): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1635): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1673): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1673): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1674): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1674): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1737): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1737): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1738): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1738): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1773): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1773): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1774): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1774): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2408): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2408): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2409): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2409): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2475): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2475): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2476): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2476): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(4636): error C2061: syntax error : identifier 'ID2D1DeviceContext'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(34): error C2146: syntax error : missing ';' before identifier 'Point'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(34): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(34): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(35): error C2146: syntax error : missing ';' before identifier 'Rect'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(39): error C2516: 'D2D1_MATRIX_4X3_F' : is not a legal base class
    1>          c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(581) : see declaration of 'D2D1_MATRIX_4X3_F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(253): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(253): error C2143: syntax error : missing ',' before '*'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(258): error C2061: syntax error : identifier 'D2D1_MATRIX_4X3_F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(49): error C2065: '_11' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(50): error C2065: '_12' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(51): error C2065: '_13' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(53): error C2065: '_21' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(54): error C2065: '_22' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(55): error C2065: '_23' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(55): fatal error C1003: error count exceeds 100; stopping compilation
    1>  TargetTexture.cpp
    .

    .

    .

    1>  Generating Code...
    1>
    1>Build FAILED.
    1>
    1>Time Elapsed 00:00:07.20
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    ========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

    Any help would be great.

    Sunday, February 12, 2012 2:59 PM

Answers

  • Hi Stimso,

    If you look at the files mentioned in the error messages you can see that you're picking up the June 2010 SDK headers for your Metro style app. If you remove the older SDK from your headers path then you should be able to build correctly.

    --Rob

    Monday, February 13, 2012 7:30 AM
    Owner