Skip to main content
GameDev.net gamedev.net
🔒 Locked

redefined D3D Interfaces

Started by ECKILLER Apr 1, 2000 at 11:55 PM 0 replies 650+ views
Original Post
ECKILLER
ECKILLER
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
SiCrane
SiCrane
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.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.