Archived

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

jpbogart

.X File specifics -- linking problems

Recommended Posts

I keep getting the following error: error LNK2005: "unsigned char * D3DRM_XTEMPLATES" (?D3DRM_XTEMPLATES@@3PAEA) already defined in StdAfx.obj when trying to compile my program that loads X files. Here''s my defs... #define D3D_OVERLOADS #define WIN32_LEAN_AND_MEAN #include #include #include "ddraw.h" #include "d3d.h" #include "dxfile.h" #include "rmxfguid.h" #include "rmxftmpl.h" and I''m linking in dxguid.lib, ddraw.lib, d3dim.lib, d3dxof.lib. Can''t figure this out... Please help.. jpbogart Life, liberty, and the pursuit of better graphics...

Share this post


Link to post
Share on other sites
DOH!

Looks like I was multiply including some of the DX header files (you''d think that they''d be if-def''d but it seemed that the linker complained anyway.

Oh well, sorry for the cluttered space.

jpbogart

Life, liberty, and the pursuit of better graphics...

Share this post


Link to post
Share on other sites