Link error: Cannot find dxguid.lib

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Link error: Cannot find dxguid.lib

Post by mongoose7 »

I downloaded the trunk and tried to compile it with Visual Studio 2010 Express on Windows 7. I edited IrrCompileConfig.h and commented out
#define _IRR_COMPILE_WITH_DIRECT3D_9_
When I try to build I get a link error
LINK : fatal error LNK1104: cannot open file 'dxguid.lib'
Presumably I can fix this if I download the DX SDK, but as I have opted not to use DX9, shouldn't I be able to link without it? Or is this a DX9 matter - I'm running DX11? BTW I didn't disable DirectInput joystick support.
Sylence
Posts: 725
Joined: Sat Mar 03, 2007 9:01 pm
Location: Germany
Contact:

Re: Link error: Cannot find dxguid.lib

Post by Sylence »

mongoose7 wrote:BTW I didn't disable DirectInput joystick support.
So why are you wondering then that you need to have the DirectX SDK installed?
Software documentation is like sex. If it's good you want more. If it's bad it's better than nothing.
CuteAlien
Admin
Posts: 9926
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Link error: Cannot find dxguid.lib

Post by CuteAlien »

Yeah, this is from _IRR_COMPILE_WITH_DIRECTINPUT_JOYSTICK_, so you have to disable that as well. Don't know why linking the joystick part is more trouble than all the rest of directx, that has annoyed me also already a few times. By now I would even prefer to disable that option by default.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Re: Link error: Cannot find dxguid.lib

Post by hybrid »

Yes, we could change back to winmm as long as this makes compiling really simpler.
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Link error: Cannot find dxguid.lib

Post by mongoose7 »

OK, thanks.
Post Reply