Jump to content
  • Advertisement
Sign in to follow this  
Benjamin Franklin

Unresolved external symbol while trying to use DirectX SDK

This topic is 2166 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 am trying to get this game that some friends and I are making to compile with no success. My errors are as follows:

1>dsutil.obj : error LNK2019: unresolved external symbol _DXTraceA@20 referenced in function "public: long __thiscall CSoundManager::Initialize(struct HWND__ *,unsigned long)" (?Initialize@CSoundManager@@QAEJPAUHWND__@@K@Z)
1>.\Debug/paddle_game.exe : fatal error LNK1120: 1 unresolved externals


I am at a loss as to what to do. I added my DirectX include and x86 library files from 3 different versions of the SDK and tried each one individually with no success. I even tried putting my dxerr9.h and .lib into the program folder and nothing. I have been trying everything that I have found on the internet to fix this, and nothing. I am so frustrated with this. Any advice would be greatly appreciated. Thanks in advance.

Share this post


Link to post
Share on other sites
Advertisement
What IDE are you using? Have you added the library dependencies in the project settings in addition to including headers in the actual code?

Share this post


Link to post
Share on other sites
I just found out where the additional dependencies are and dxerr9 is included in the dependencies, which I heard it where the DXTrace function can be found. This just gets more and more frustrating.

Share this post


Link to post
Share on other sites
You want to make sure you've set up your include/library paths correctly, see this thread for a related solution (might need some tweaking on the menu titles, but the core concept is the same) Edited by BCullis

Share this post


Link to post
Share on other sites
@fredericvo - that didn't work either. i added the #include dxerr9.h in my code and still this same infuriating errors. i even went so far as to uninstall and re-install VS2010 to see if that fixed the errors.

Share this post


Link to post
Share on other sites
Could have something to do with the character set your VS project is using (Project settings -> General -> Character Set).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!