Jump to content
  • Advertisement

Archived

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

unresolved external symbol _Direct3DCreate8@4

This topic is 5803 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

I got this error after I had write after one of the examples from the book game programing all in one, Compiling... main.cpp Linking... main.obj : error LNK2001: unresolved external symbol _Direct3DCreate8@4 Debug/blue window.exe : fatal error LNK1120: 1 unresolved externals Error executing link.exe. blue window.exe - 2 error(s), 0 warning(s) What should I do to make it work and what is wrong??? I am using Visual c++ 6.0 and DirectX8.1 SDK please help me!! Mullvad

Share this post


Link to post
Share on other sites
Advertisement
Did you include the d3d8.lib in your project?

In vc++:
Choose Project->Settings.
Under the link tab just write
d3d8.lib in the "Object/Library modules" field.

Share this post


Link to post
Share on other sites
With DirectX, you need to link the library files. d3d8.lib is just one of the many. You should get in a habit of including d3d8.lib, d3dx8.lib, dxguid.lib, and winmm.lib. Those four I use more than any other library files. Of course there''s dinput and dsound too. The DirectX SDK tells what files need to be linked for each function. Anyways, keep in mind that it''s usually a link error when you get the unresolved extrernal errors.

My Site

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!