Archived

This topic is now archived and is closed to further replies.

ECKILLER

redefined D3D Interfaces

Recommended Posts

Hi, I''m including all the d3d header files into my main.h header file. I include the main file into my WinMain.cpp file and a functionDefinition.cpp file. I''m getting 7 of the D3D interfaces already defined linker error. My main.h has a #ifndef...endif surrounding everything. Using visual c++ 6.0. ECKILLER

Share this post


Link to post
Share on other sites
In main.h do you define INITGUID? If so, delete that line. Only include it in a single .cpp file before the DX includes. Or don''t include it at all and instead link against dxguid.lib. If that isn''t the case, then pretend this post didn''t exist.

Share this post


Link to post
Share on other sites