redefined D3D Interfaces

Started by
0 comments, last by ECKILLER 24 years ago
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
ECKILLER
Advertisement
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.

This topic is closed to new replies.

Advertisement