I've been reading The Zen Of Direct3d Game Programming and am doing an exercise for one of the chapters that simply plots 10000 random pixels in a given amount of seconds. Well... the code itself is easy enough to understand but the problem comes into view when I try to complie and link it.
Yes I've set it up right (as far as I know)...
DirectX include folder is at top list in directories tab/include...
DirectX lib folder is at top list in directories tab/lib...
Links... dxguid.lib d3d8.lib d3dx8.lib and winmm.lib have been put at the begginging of Object/library modules text box.
When I go to Compile it these errors occur....
Compiling...
dots.cpp
c:\MSSDK\INCLUDE\d3dx8math.inl(1107) : error C2065: 'sqrtf' : undeclared identifier
c:\MSSDK\INCLUDE\d3dx8math.inl(1107) : error C2064: term does not evaluate to a function
c:\MSSDK\INCLUDE\d3dx8math.inl(1239) : error C2064: term does not evaluate to a function
c:\MSSDK\INCLUDE\d3dx8math.inl(1384) : error C2064: term does not evaluate to a function
c:\MSSDK\INCLUDE\d3dx8math.inl(1554) : error C2064: term does not evaluate to a function
Error executing cl.exe.
dots.exe - 5 error(s), 0 warning(s)
Why would d3dx8math.inl... a file that comes with directx be wrong? This is why I think it's something that I'm doing wrong... I just don't understand. If someone can help with this problem it would be greatly appreciated. Thankyou.