Archived

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

GRR

create a simple window

Recommended Posts

I know the problem is simple but I''m new at DX and am still learning. could someone help me out??? The to headers I''m useing. #include <windows.h> #include <d3d8.h> The error Compiling... DX 1.cpp Linking... DX 1.obj : error LNK2001: unresolved external symbol _Direct3DCreate8@4 Debug/DX 1.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. DX 1.exe - 2 error(s), 0 warning(s)

Share this post


Link to post
Share on other sites
Depending on what you''re using, you''ll want to add libraries to the link stage. The full bundle is something like,

dsound.lib dinput8.lib dxerr8.lib d3dx8dt.lib d3d8.lib d3dxof.lib dxguid.lib

Add them under Project->Settings->Link, Input category. Don''t forget to make both debug and release builds include them.

d3d8.lib alone might solve your problem though.

hth

Share this post


Link to post
Share on other sites