Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Unresolved external symbol while trying to use DirectX SDK


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
10 replies to this topic

#1 by_the_blood   Members   -  Reputation: 108

Like
0Likes
Like

Posted 16 July 2012 - 01:11 PM

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.

Sponsor:

#2 BCullis   Crossbones+   -  Reputation: 1813

Like
0Likes
Like

Posted 16 July 2012 - 01:23 PM

What IDE are you using? Have you added the library dependencies in the project settings in addition to including headers in the actual code?
Hazard Pay :: FPS/RTS in SharpDX
DeviantArt :: Because right-brain needs love too

#3 by_the_blood   Members   -  Reputation: 108

Like
0Likes
Like

Posted 16 July 2012 - 02:15 PM

I am using Visual Studio 2008. I don't know how to add the library dependencies. Could you help please?

#4 by_the_blood   Members   -  Reputation: 108

Like
0Likes
Like

Posted 16 July 2012 - 02:21 PM

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.

#5 BCullis   Crossbones+   -  Reputation: 1813

Like
0Likes
Like

Posted 16 July 2012 - 02:54 PM

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, 16 July 2012 - 02:54 PM.

Hazard Pay :: FPS/RTS in SharpDX
DeviantArt :: Because right-brain needs love too

#6 by_the_blood   Members   -  Reputation: 108

Like
0Likes
Like

Posted 16 July 2012 - 03:11 PM

I did set them up the paths correctly. I don't understand why it won't work.

Edited by by_the_blood, 16 July 2012 - 03:11 PM.


#7 Fredericvo   Members   -  Reputation: 483

Like
0Likes
Like

Posted 16 July 2012 - 03:26 PM

Would this work?
#pragma comment(lib,"dxerr9.lib")
in your source file

#8 by_the_blood   Members   -  Reputation: 108

Like
0Likes
Like

Posted 18 July 2012 - 12:54 PM

@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.

#9 by_the_blood   Members   -  Reputation: 108

Like
0Likes
Like

Posted 18 July 2012 - 12:54 PM

i appreciate the help you guys are trying to give me. thank you.

#10 eppo   Crossbones+   -  Reputation: 2629

Like
0Likes
Like

Posted 18 July 2012 - 01:49 PM

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

#11 by_the_blood   Members   -  Reputation: 108

Like
0Likes
Like

Posted 18 July 2012 - 02:54 PM

no, i was using multi-byte. i figured it out! i was calling "dxerr9.h" and .lib, when i should have been calling "dxerr.h" and .lib. Thanks for the support. You guys are kewl. I like this community already.




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS