D3DX10.h math errors

okay i can get a dx10 window open, which doesnt require the use of d3dx10.h

as soon as i attempt to use the effect system, i need d3dx10.h, so when i include this file it get build errors.

Im using the june 06 sdk, with vista beta 2.

 

 

 

 build results :

 

Compiling...

DX10Texture.cpp

DX10RenderFactory.cpp

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1542) : error C3861: 'sqrtf': identifier not found

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1674) : error C3861: 'sqrtf': identifier not found

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1819) : error C3861: 'sqrtf': identifier not found

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1989) : error C3861: 'sqrtf': identifier not found

DX10Effect.cpp

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1542) : error C3861: 'sqrtf': identifier not found

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1674) : error C3861: 'sqrtf': identifier not found

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1819) : error C3861: 'sqrtf': identifier not found

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1989) : error C3861: 'sqrtf': identifier not found

DX10Device.cpp

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1542) : error C3861: 'sqrtf': identifier not found

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1674) : error C3861: 'sqrtf': identifier not found

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1819) : error C3861: 'sqrtf': identifier not found

c:\program files (x86)\microsoft directx sdk (june 2006)\include\D3DX10math.inl(1989) : error C3861: 'sqrtf': identifier not found

Generating Code...

Creating browse information file...

Microsoft Browse Information Maintenance Utility Version 8.00.50727

Copyright (C) Microsoft Corporation. All rights reserved.

Build log was saved at "file://e:\BlackCarbon\Library\Render\DX10\Debug_DX10\BuildLog.htm"

DX10Render - 12 error(s), 0 warning(s)

 

 



Answer this question

D3DX10.h math errors

  • Mix from Latvia

    okay so its not a dx10 error.
  • Enrique0210

    It works fine form me with this version. You should check your include path settings if the point to an old runtime that doesn’t contain the sqrtf method.

    Maybe you should try to create a simple app that include math.h and use the sqrtf function.



  • trumpy81

    Which Compiler/IDE version do you use

    The error messages sound like you have version that doesn’t include the right math library.

    Maybe your include paths are wrong or you need to update to a new platform SDK.



  • JStorm

    visual studio 2005 profesional edition

    the samples build fine


  • D3DX10.h math errors