Jump to content

  • Log In with Google      Sign In   
  • Create Account


VS2012: Fatal error LNK1181: cannot open input file 'dxerr9.lib'


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
3 replies to this topic

#1 tom_mai78101   Members   -  Reputation: 568

Like
0Likes
Like

Posted 02 October 2012 - 11:15 AM

For some reason, I hit a LNK1181 error, stating that it can't find the library file "dxerr9.lib". However, when I went to go check on the Library path, it is correct.

Asking Google, I came upon this articlethat I may have to put quotation marks on the path directory. I did it, but it didn't work.

Here's a picture of the Project Properties dialog.

Posted Image

Does anyone else knows how to fix this? Thanks in advance.

EDIT: Nevermind about the LNK errors. I found this article, which prompted me to go download the DirectX SDK (June 2010), grab DxErr.lib, D3dx10d.lib, and D3Dx9.lib, rename DxErr.lib to DxErr9.lib, put all three LIBs in a new folder somewhere, and set a new directory listing to that folder.

Now, I'm back to square one. The dreaded LNK2001 external error:

[source lang="plain"]Error 1 error LNK2001: unresolved external symbol "long __cdecl ATL::AtlGetCommCtrlVersion(unsigned long *,unsigned long *)" (?AtlGetCommCtrlVersion@ATL@@YAJPAK0@Z) C:\Users\Thompson\Documents\Visual Studio 2012\Projects\VGMTrans\mainfrm.obj VGMTrans[/source]
This fix is daunting, since in VS2012, Microsoft removed some legacy ATL stuff.

Edited by tom_mai78101, 02 October 2012 - 11:32 AM.


Sponsor:

#2 achild   Crossbones+   -  Reputation: 1719

Like
0Likes
Like

Posted 02 October 2012 - 12:04 PM

Supposedly, that is an undocumented function - so it was at your own risk to use it.

You can emulate it using DllGetVersion from Comctl32.dll.
See http://msdn.microsoft.com/en-us/library/windows/desktop/bb776404(v=vs.85).aspx

Better question - do you really even need it for what you're trying to do? If you're using an application manifest, you will know your common control version anyway...

[edit] This is how wtl implements it - look at the end of the file. http://wpack.googlec...ty/wtl/atlapp.h
[edit2] Fixed.

Edited by achild, 02 October 2012 - 12:27 PM.


#3 tom_mai78101   Members   -  Reputation: 568

Like
0Likes
Like

Posted 02 October 2012 - 12:24 PM

The first link you've provided is dead. Content not found.

To answer the question, the function is somehow required. But, it's not in the way that I understand what I'm about to do.

#4 achild   Crossbones+   -  Reputation: 1719

Like
0Likes
Like

Posted 02 October 2012 - 12:28 PM

It parsed the html path badly. Made it a real link.

Anyway, the code for the function you want is in the 2nd link.




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