• Advertisement
Sign in to follow this  

Dark GDK not working

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

On Dark GDK i tried to open up a new 2d game project and try to run it but it says cannot open file 'dxerr9.lib' Do you guys know what the problem is? Help greatly appreciated

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by eFoDay
I've not used Dark GDK but possibly you need to install the DirectX SDK.


I have installed the newest DirectX SDK and I am not sure where the lib would go, but I did not adjust any of the default settings. Anybody else have this problem?

Share this post


Link to post
Share on other sites
I did a search for dxerr9.lib on my pc

it found it here
C:\Program Files\Microsoft DirectX SDK (March 2009)\Lib\x86

make sure you have this folder (or wherever your install is) in your lib directories

Share this post


Link to post
Share on other sites
Quote:
Original post by eFoDay
I did a search for dxerr9.lib on my pc

it found it here
C:\Program Files\Microsoft DirectX SDK (March 2009)\Lib\x86

make sure you have this folder (or wherever your install is) in your lib directories


So I went to
C:\Program Files (x86)\Microsoft DirectX SDK (August 2009)\Lib\x86

and there a bunch of stuff in there. How do I put this folder in my lib directories?

Share this post


Link to post
Share on other sites
I imagine your using Visual Studio Express?

Go to Tools >> Options >> Projects and Solutions >> VC++ Directories
Now on the right you should see a drop down that says
Show directories for:
Change it to Library files and make sure the folder is in there

Share this post


Link to post
Share on other sites
Quote:
Original post by eFoDay
I imagine your using Visual Studio Express?

Go to Tools >> Options >> Projects and Solutions >> VC++ Directories
Now on the right you should see a drop down that says
Show directories for:
Change it to Library files and make sure the folder is in there


Yes I am using Visual Studio C++ 2008 Express.

Yes, the folder is in there as well, it is on the top of the list, but still not working for some reason.

Have an idea why?

Share this post


Link to post
Share on other sites
Sorry I'm out of ideas.
If the lib is in there it should be able to find it.

You could remove dxerr9.lib from your linker options
as long as there is no code calling the lib

Go to Project >> (name) Properties >> Configuration Properties >> Linker >> Input

then on the right side it will show you Additional Dependencies

delete dxerr9.lib and it won't need it anymore
but if there is code calling it then you will get link errors when you try to build

Share this post


Link to post
Share on other sites
Quote:
Original post by eFoDay
Sorry I'm out of ideas.
If the lib is in there it should be able to find it.

You could remove dxerr9.lib from your linker options
as long as there is no code calling the lib

Go to Project >> (name) Properties >> Configuration Properties >> Linker >> Input

then on the right side it will show you Additional Dependencies

delete dxerr9.lib and it won't need it anymore
but if there is code calling it then you will get link errors when you try to build


I went to the Additional Dependencies but the space is blank.

Also I was looking this problem up online as well and it said something about the August 2009 DirectX SDK either changed 'dxerr9.lib' to 'dxerr.lib' or completely removed it. Is that the problem? Just throwing stuff out there

Share this post


Link to post
Share on other sites
did it make files for you automatically in the project?
check through them and see if you can find
#pragma comment(lib, "dxerr9.lib")

check back in your folder
C:\Program Files (x86)\Microsoft DirectX SDK (August 2009)\Lib\x86
and see if either of the files dxerr9.lib or dxerr.lib is actually in there

Share this post


Link to post
Share on other sites
Quote:
I went to the Additional Dependencies but the space is blank.


That's kinda the point. You're supposed to fill in the blank.
Either by clicking on the space or by clicking on a button next to it. There should probably be a button named 'Add new path' or something similar. I don't recall right now.

Edit: Unless you want to remove the dependency on dxerr9.lib altogether, but then you better make sure there's no code calling anything from that lib.

Share this post


Link to post
Share on other sites
Quote:
Original post by eFoDay
did it make files for you automatically in the project?
check through them and see if you can find
#pragma comment(lib, "dxerr9.lib")

check back in your folder
C:\Program Files (x86)\Microsoft DirectX SDK (August 2009)\Lib\x86
and see if either of the files dxerr9.lib or dxerr.lib is actually in there


I checked in my
C:\Program Files (x86)\Microsoft DirectX SDK (August 2009)\Lib\x86
and there is a file named 'DxErr' but no 'dxerr9'.

Also where is the #pragma comment(lib, "dxerr9.lib") you are talking about?

Share this post


Link to post
Share on other sites
I found this post at another forum

dxerr9.lib missing in directX SDK august 2009

Quote:
Posted: 18th Dec 2009 21:43
The only way to get it to work was to install the 2007 directx sdk that microsoft has in the darkGDK page. Also had to install an older (6.0) windows platform sdk. This SDKs are now installed along the newer ones, but I had to reference the older ones on the visual studio compiler directories.

Bottom line: GDK needs the older sdks.


You may just need the March 2009 SDK not back to 07 because dxerr9.lib is still in mine.

You could just try getting a copy of that file and sticking it in your current installation.

Share this post


Link to post
Share on other sites
Quote:
Original post by xx6heartless6xx
Also where is the #pragma comment(lib, "dxerr9.lib") you are talking about?


it would be in any of the .h or .cpp files in your project

since you do have the file dxerr.lib then you would just need to change it to
#pragma comment(lib, "dxerr.lib") if its there

the only two ways I know Visual Studio tries linking with libs is either
Additional Dependencies or the #pragma comment in the code
maybe there is another way

some way though it is trying to link with dxerr9.lib and you want it to link with dxerr.lib

maybe you could even try renaming the file from dxerr9 to dxerr and see if that works

Share this post


Link to post
Share on other sites
you can have both installed at the same time so it doesn't really matter

but maybe just try renaming the file
if it is the exact same file with a different name then it should work

edit from my last post I mean rename dxerr to dxerr9 :)
well actually that may mess up something else
so instead of renaming actually copy the file and rename the new file dxerr9

Share this post


Link to post
Share on other sites
Ok, so I renamed the dxerr to dxerr9 in the lib folder and I think that fixed the problem.

But now theres another problem. Now when I try to run it, it says
cannot open file 'dplayx.lib'
and no it is not in the lib folder

Share this post


Link to post
Share on other sites
are you using the newest version of DarkGDK?
its trying to link with DirectPlay? that seems weird

I'm not very familiar with the GDK but can you build it from source?
perhaps it is whats linking these libs?

maybe a rebuild of the GDK is needed?

you can get the dplayx file from here
http://www.cubic.org/player/doc/node69.htm
http://cubic.org/player/dx9wat.zip

but It seems kinda silly since Microsoft pushes the GDK on the Visual Studio page that it would be not compatible with the newest DirectX

Share this post


Link to post
Share on other sites
Yes apparently DarkGDK requires the August 2007 DirectX SDK.

You can download it from that system requirements page.

That should fix your problem since it will have all the files you need.

Share this post


Link to post
Share on other sites
Quote:
Original post by eFoDay
Yes apparently DarkGDK requires the August 2007 DirectX SDK.

You can download it from that system requirements page.

That should fix your problem since it will have all the files you need.


Great! Thanks for your help eFoDay and everyone else. I have been trying to fix this for quite a while and finally it gets fixed! Happy holidays to you guys and Merry Christmas!

Share this post


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

  • Advertisement