Directx error! Help needed.
by Hugo Queiriga · in Technical Issues · 02/16/2005 (12:16 pm) · 4 replies
Hi i just tried to compile this game i done and i keep getting this errors all the time, even i i try with directx 9 sdk it don't matter same errors show up.
I can't figure out what is wrong.
c:\torque\sdk\lib\directx8\d3dx8math.h(535) : error C2143: syntax error : missing ',' before '*'
c:\torque\sdk\lib\directx8\d3dx8math.h(535) : error C2059: syntax error : '*'
c:\torque\sdk\lib\directx8\d3dx8math.h(540) : error C2143: syntax error : missing ',' before '*'
c:\torque\sdk\lib\directx8\d3dx8math.h(540) : error C2059: syntax error : '*'
c:\torque\sdk\lib\directx8\d3dx8math.inl(484) : error C2065: 'm' : undeclared identifier
c:\torque\sdk\lib\directx8\d3dx8math.inl(484) : error C2109: subscript requires array or pointer type
c:\torque\sdk\lib\directx8\d3dx8math.inl(484) : error C2109: subscript requires array or pointer type
c:\torque\sdk\lib\directx8\d3dx8math.inl(484) : error C2440: 'return' : cannot convert from 'int' to 'float &'
A reference that is not to 'const' cannot be bound to a non-lvalue
c:\torque\sdk\lib\directx8\d3dx8math.inl(490) : error C2109: subscript requires array or pointer type
c:\torque\sdk\lib\directx8\d3dx8math.inl(490) : error C2109: subscript requires array or pointer type
c:\torque\sdk\lib\directx8\d3dx8math.inl(490) : warning C4244: 'return' : conversion from 'int' to 'float', possible loss of data
c:\torque\sdk\lib\directx8\d3dx8math.inl(1516) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1516) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1516) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1517) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1517) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1517) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1518) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1518) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1518) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1519) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1519) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1519) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
I can't figure out what is wrong.
c:\torque\sdk\lib\directx8\d3dx8math.h(535) : error C2143: syntax error : missing ',' before '*'
c:\torque\sdk\lib\directx8\d3dx8math.h(535) : error C2059: syntax error : '*'
c:\torque\sdk\lib\directx8\d3dx8math.h(540) : error C2143: syntax error : missing ',' before '*'
c:\torque\sdk\lib\directx8\d3dx8math.h(540) : error C2059: syntax error : '*'
c:\torque\sdk\lib\directx8\d3dx8math.inl(484) : error C2065: 'm' : undeclared identifier
c:\torque\sdk\lib\directx8\d3dx8math.inl(484) : error C2109: subscript requires array or pointer type
c:\torque\sdk\lib\directx8\d3dx8math.inl(484) : error C2109: subscript requires array or pointer type
c:\torque\sdk\lib\directx8\d3dx8math.inl(484) : error C2440: 'return' : cannot convert from 'int' to 'float &'
A reference that is not to 'const' cannot be bound to a non-lvalue
c:\torque\sdk\lib\directx8\d3dx8math.inl(490) : error C2109: subscript requires array or pointer type
c:\torque\sdk\lib\directx8\d3dx8math.inl(490) : error C2109: subscript requires array or pointer type
c:\torque\sdk\lib\directx8\d3dx8math.inl(490) : warning C4244: 'return' : conversion from 'int' to 'float', possible loss of data
c:\torque\sdk\lib\directx8\d3dx8math.inl(1516) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1516) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1516) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1517) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1517) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1517) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1518) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1518) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1518) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1519) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1519) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.inl(1519) : error C2039: 'm' : is not a member of 'D3DXMATRIX'
c:\torque\sdk\lib\directx8\d3dx8math.h(181) : see declaration of 'D3DXMATRIX'
#2
02/16/2005 (12:22 pm)
If you're using VC6 you will probably need a recent version of the Platform SDK. You can download it for free from Microsoft.
#3
02/16/2005 (12:23 pm)
Please post code related questions in the private forums
#4
Ken i tried with sdk9 i get exactly the same errors.
02/16/2005 (12:35 pm)
I'm sorry but this isn't torque code this is directx and i'm compiling my own game not torque jsut usign the directx 8 lib included in the sdk as i already got directx 9 sdk installed and don't want to install directx 8 sdk.Ken i tried with sdk9 i get exactly the same errors.
Torque Owner Hugo Queiriga