Jump to content
  • Advertisement

Archived

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

ECKILLER

redefined D3D Interfaces

This topic is 6626 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!