locked
Fail to Build All DirectX Sample

    Question

  • I'm using Windows 8 and Visual Studio Ultimate 2012 with update 2.

    I'm trying to run the samples that I downloaded from 

    http://code.msdn.microsoft.com/Windows-8-Modern-Style-App-Samples

    but everytime I tried to build the directX project, I always fail. Other sample (C#, C++ non directX and Javascript) can be built successfully, only project which include directX.

    This is the output when I tried to build marble maze direct 3d project:

    1>------ Build started: Project: MarbleMaze, Configuration: Debug Win32 ------
    1>  compilation object save succeeded; see C:\Users\Ryuuzaki\Documents\Visual Studio 2012\Projects\DirectX marble maze game sample\C++\Debug\MarbleMaze\BasicPixelShader.cso
    1>  compilation object save succeeded; see C:\Users\Ryuuzaki\Documents\Visual Studio 2012\Projects\DirectX marble maze game sample\C++\Debug\MarbleMaze\BasicVertexShader.cso
    1>  pch.cpp
    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(49859) : 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(49868) : 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(49877) : 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(49886) : 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(49895) : 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(49904) : 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(49913) : 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(49922) : 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(49931) : 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(49940) : 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(49949) : 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(49958) : 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(49967) : 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(49976) : 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(49985) : 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(49994) : 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(50003) : 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(50012) : 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(50021) : 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(50030) : 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(50039) : 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(50048) : 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(50057) : 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(50066) : 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(50075) : 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(50084) : 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(50093) : 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(50102) : 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(50111) : see previous definition of 'D2DERR_EXCEEDS_MAX_BITMAP_SIZE'
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2d1.h(994): error C2065: 'D3D10_FEATURE_LEVEL_9_1' : undeclared identifier
    1>c:\program files (x86)\microsoft directx sdk (june 2010)\include\d2d1.h(999): error C2065: 'D3D10_FEATURE_LEVEL_10_0' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(62): error C2146: syntax error : missing ';' before identifier 'D2D1_RECT_L'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(62): 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(63): error C2146: syntax error : missing ';' before identifier 'D2D1_POINT_2L'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(63): 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(297): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(298): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(299): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_CUBIC' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(300): 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(301): error C2065: 'D2D1_INTERPOLATION_MODE_DEFINITION_ANISOTROPIC' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(302): 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(484): error C2146: syntax error : missing ';' before identifier 'D2D1_VECTOR_2F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(484): 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(485): error C2146: syntax error : missing ';' before identifier 'D2D1_VECTOR_3F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(485): 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(486): error C2146: syntax error : missing ';' before identifier 'D2D1_VECTOR_4F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(486): 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(584): 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(584): 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(585): 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(585): 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(586): 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(586): 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(822): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(822): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(823): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(823): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(847): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(847): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(848): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(848): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(879): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(879): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(880): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(880): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1024): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1024): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1025): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1025): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1051): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1051): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1052): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1052): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1078): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1078): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1079): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1079): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1131): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1131): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1132): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1132): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1157): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1157): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1158): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1158): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1172): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1172): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1173): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1173): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1226): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1226): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1227): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1227): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1515): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1515): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1516): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1516): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1593): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1593): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1594): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1594): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1646): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1646): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1647): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1647): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1685): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1685): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1686): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1686): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1749): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1749): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1750): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1750): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1785): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1785): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1786): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(1786): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2458): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2458): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2459): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2459): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2525): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2525): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2526): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2526): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2687): error C2059: syntax error : 'string'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2687): error C2059: syntax error : 'public'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2688): error C2143: syntax error : missing ';' before '{'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(2688): error C2447: '{' : missing function header (old-style formal list?)
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1.h(4780): 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(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(41): error C2146: syntax error : missing ';' before identifier 'Point'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(41): 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(42): error C2146: syntax error : missing ';' before identifier 'Rect'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(42): 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(46): 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(584) : see declaration of 'D2D1_MATRIX_4X3_F'
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(56): error C2065: '_11' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(57): error C2065: '_12' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(58): error C2065: '_13' : undeclared identifier
    1>c:\program files (x86)\windows kits\8.0\include\um\d2d1_1helper.h(58): fatal error C1003: error count exceeds 100; stopping compilation
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    ========== Deploy: 0 succeeded, 0 failed, 0 skipped ==========

    Strangely, I'm able to build the Direct3D app template which is given in the Visual Studio 2012 C++ Windows Store Apps template (the cube renderer).

    I've tried to move the project to D:\\ and also to my visual studio 2012/projects folder but no luck.

    Somehow, I figured it out that the reason I fail to build the project is because I pick up the DirectX June 2010 SDK for my windows store apps (same with the thread from 

    http://social.msdn.microsoft.com/Forums/en-US/winappswithnativecode/thread/7731b2ef-7cf2-4230-a2f4-0a49bb63d09f/ )

    I've tried re-installing and repairing my visual studio but I can't find the correct directories for the include and the library. The last previous thread I've provided suggest to remove the older SDK but I don't know how to do it.

    Could somebody tell me what should be the default include and librabry directories?

    Any help and suggestion will be a great help for me.

    Thanks before.

    Monday, April 15, 2013 7:35 AM

All replies