create a simple window
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)
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
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement