www.digitalmars.com Home | Search | C & C++ | D | DMDScript | News Groups | index | prev | next
Archives

D Programming
D
D.gnu
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript

c++.windows.32-bits - DirectX 9.0

Hi.

I've been trying to use DirectX 9.0 with DMC. I have downloaded the SDKs from
Microsoft, converted the COFFs to older COFFs with "link /lib /convert" and then
from COFF to OMF with COFF2OMF.

Using d3d9.lib works perfectly. However, when I try to use functions from
d3dx9.lib, I get lots of errors of type
"Error: [...]\d3dx9.lib(d3dxvec2) : Previous Definition Different :
ProcPrologue"

This simple program (linked with d3dx9.lib) gives 42 link errors:

#include <d3dx9.h>
INT WINAPI WinMain( HINSTANCE hInst, HINSTANCE, LPSTR, INT ) {
D3DXMatrixRotationY( 0, 0.0f );
return 0;
}

Has anyone used d3dx9 functions successfully with DMC?

Magnar
May 23 2004