More Then One Instance Of Overloaded Function XMMatrixTranspose

I googled it and a post told me to install the SDK for windows 7 instead of windows SDK 8. I did that but still got the error.

The error did not appear on the first run , yet the program did not show a cube as it was supposed to though. The second time I get the message :
"Unhandled exception at 0x00A1B633 in CPPFileName.exe; 0xC0000005: Acces violation reading location 0xFFFFFFFF."
After I break Visual Studio 2012 shows the DirectXMathrix.inl file with multiple errors containing :
"More then one instance of overloaded function "XMMatrixDeterminant"
" More then one instance of overloaded function ... matches argumentlist
XMMatrixIdentity()
DirectX::XMMatrixIdentity "

I tried specify to DirectX::XMMatrixIdentity resulting in an error with ... is ambiguous.

Then I tried checking if I did not use an unnecessary include-file :
1
2
3
4
5
6
#include <windows.h>
#include <d3d11.h>
#include <d3dcompiler.h>
#include <directxmath.h>
#include <fstream>
using namespace DirectX;

No VC++ directories included, only d3d11.lib in the linker

After I stop debugging the functioncall XMMatrixTranspose( ... ) is underlined with the error more then one instance of the overloaded function .... :

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
void D3Ddemo::Render( ) {
	if( d3dContext_ == 0 ) return;
	float clearColor[4] = { 0.0f, 0.0f, 0.25f, 1.0f };
	d3dContext_->ClearRenderTargetView( backBufferTarget_, clearColor );
	//Start render
	    ConstantBuffer cb;
			cb.mView = XMMatrixTranspose( g_View );
			cb.mProjection = XMMatrixTranspose( g_Projection );
			cb.mWorld = XMMatrixTranspose( g_World );
		d3dContext_->UpdateSubresource( MainConstantBuffer, 0, NULL, &cb, 0, 0 );
		d3dContext_->VSSetShader( vertexShader_, NULL, 0 );
		d3dContext_->VSSetConstantBuffers( 0, 1, &MainConstantBuffer );
		d3dContext_->PSSetShader( pixelShader_, NULL, 0 );
		d3dContext_->DrawIndexed( 36, 0, 0 );        // 36 vertices needed for 12 tri
	//Stop render
	swapChain_->Present( 0, 0 );
}


I really got no idea what to do about this... hope someone of you do
Last edited on
Topic archived. No new replies allowed.