EDN Admin
Well-known member
Hi
I am trying to compile the DirectX tutorial samples, the first 2 work, cos theyre easy. But everything else after that doesnt. initially it asks for d3d9.h.
after introducing the following in the include directories in project properties:<br/>
sdkpath inlclude
DXsdk2009include
DXsdk2010include
<br/>
and then in the libary directories:
sdkpathlib
Dx2009libx64
Dx2010libx64
The Unresolved symbol error for the linker stop and evolves into these syntax errors, however they mostly are references to actual structures within DirectX, heres the output :
<br/>
<pre class="prettyprint" style=" >crogram files (x86)directx sdkjune 2010included3d11shader.h(35): error C2146: syntax error : missing ; before identifier D3D11_RESOURCE_RETURN_TYPE
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(37): error C2146: syntax error : missing ; before identifier D3D11_CBUFFER_TYPE
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(37): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(37): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(45): error C2146: syntax error : missing ; before identifier SystemValueType
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(46): error C2146: syntax error : missing ; before identifier ComponentType
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(80): error C2146: syntax error : missing ; before identifier Class
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(81): error C2146: syntax error : missing ; before identifier Type
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(90): error C2146: syntax error : missing ; before identifier D3D11_TESSELLATOR_DOMAIN
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(92): error C2146: syntax error : missing ; before identifier D3D11_TESSELLATOR_PARTITIONING
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(92): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(92): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(94): error C2146: syntax error : missing ; before identifier D3D11_TESSELLATOR_OUTPUT_PRIMITIVE[/code]
<br/>
Now, I know that these are not worth playing with as many of them are probably dependents within another DX object... So what can I do!!!???
I have : tried x86 libaries
reinstalled IDE, Windows sdk, DirectXsdk 2010, DirectXsdk2009
This tutroial is only the icing on the cake, I have other projects that are not compiling. can any one at least help me with the Basic setup of DirectX??!!
Any help whatsoever would be Greatly appreciated, I have spent quite a few hours looking for the solutions for these problems.
<br/>
View the full article
I am trying to compile the DirectX tutorial samples, the first 2 work, cos theyre easy. But everything else after that doesnt. initially it asks for d3d9.h.
after introducing the following in the include directories in project properties:<br/>
sdkpath inlclude
DXsdk2009include
DXsdk2010include
<br/>
and then in the libary directories:
sdkpathlib
Dx2009libx64
Dx2010libx64
The Unresolved symbol error for the linker stop and evolves into these syntax errors, however they mostly are references to actual structures within DirectX, heres the output :
<br/>
<pre class="prettyprint" style=" >crogram files (x86)directx sdkjune 2010included3d11shader.h(35): error C2146: syntax error : missing ; before identifier D3D11_RESOURCE_RETURN_TYPE
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(35): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(37): error C2146: syntax error : missing ; before identifier D3D11_CBUFFER_TYPE
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(37): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(37): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(45): error C2146: syntax error : missing ; before identifier SystemValueType
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(45): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(46): error C2146: syntax error : missing ; before identifier ComponentType
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(46): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(80): error C2146: syntax error : missing ; before identifier Class
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(80): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(81): error C2146: syntax error : missing ; before identifier Type
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(81): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(90): error C2146: syntax error : missing ; before identifier D3D11_TESSELLATOR_DOMAIN
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(90): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(92): error C2146: syntax error : missing ; before identifier D3D11_TESSELLATOR_PARTITIONING
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(92): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(92): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>crogram files (x86)directx sdkjune 2010included3d11shader.h(94): error C2146: syntax error : missing ; before identifier D3D11_TESSELLATOR_OUTPUT_PRIMITIVE[/code]
<br/>
Now, I know that these are not worth playing with as many of them are probably dependents within another DX object... So what can I do!!!???
I have : tried x86 libaries
reinstalled IDE, Windows sdk, DirectXsdk 2010, DirectXsdk2009
This tutroial is only the icing on the cake, I have other projects that are not compiling. can any one at least help me with the Basic setup of DirectX??!!
Any help whatsoever would be Greatly appreciated, I have spent quite a few hours looking for the solutions for these problems.
<br/>
View the full article