VS2010/DirectX linkage errors

Started by
13 comments, last by Mattaria 12 years, 7 months ago
Mmm you need the DxError lib(what CLB said),
so it is
[source]
pragma comment(lib, "DxErr9.lib")
[/source]
or
[source]
pragma comment(lib, "DxErr.lib")
[/source]
or both :P

I cant say it for sure because i never used it.

Hope it will fix the remaining errors : )
Advertisement
Hey Jeffrey, I tried adding:

#pragma comment(lib, "DxErr9.lib")

This gives a popup during compilation saying:

"Debugging information for 'Building 9 - Project 1.exe' cannot be found or does not match...

...do you want to continue debugging?"

Choosing yes, starts the game.

I have a folder for XAnimator, the stuff we are using for animation, which contains it's own custom library. Is it the linking of the stuff here causing the problem?
I think this can help you out.
It sounds to me as though you may have set up the original imports for d3d9.lib and d3dx9.lib under project properties/linker/additional library dependencies for your debug config, but not done so for your release config. Double-checking that and fixing it if appropriate will be a cleaner solution than manually specifying them via #'pragma directives.

Direct3D has need of instancing, but we do not. We have plenty of glVertexAttrib calls.

WOOO! Thanks to all you lovely people, our game now runs in release mode!

Mhagain, I have set up the libraries like you have said already, but that didn't work and I don't know why, so looks like it's staying with the #pragmas for now.

As an attempt for me to learn a bit more about the compiler options and whatnot, here are some things which are the same in debug and release. should they be?
  • All of the VC++ options
  • Linker > Additional library directories
in the C/C++ option list, under output files the following are different:
  • ASM list location --> Debug: .\debug/ --> Release: $(IntDir)
  • object file name --> Debug: .\debug/ --> Release:$(IntDir)
  • Program database file name --> Debug: .\debug/ --> Release:$(IntDir)vc$(PlatformToolsetVersion).pdb
Would just like to thank everyone who contributed and spent their time trying to help a novice like myself :)

This topic is closed to new replies.

Advertisement