locked
what is dxguid.lib? RRS feed

  • Question

  • when I build a project,
    the error is 
    error 1 fatal error LNK1104:  could not open file “dxguid.lib” MpegToWav MpegToWav
    How should I do?
    Thanks.
    Sunday, June 21, 2009 8:23 AM

Answers

  • That comes with the DirectX SDK, which you can download here .
    • Marked as answer by nobugz Sunday, June 21, 2009 1:48 PM
    Sunday, June 21, 2009 8:33 AM

All replies

  • That comes with the DirectX SDK, which you can download here .
    • Marked as answer by nobugz Sunday, June 21, 2009 1:48 PM
    Sunday, June 21, 2009 8:33 AM
  • I have installed the windows sdk at my vista.
    why no dxguid?
    Tuesday, June 23, 2009 5:47 AM
  • Because it's part of the DirectX SDK not the Windows SDK.
    My dshow site is http://tmhare.mvps.org.  Please use Vote As Helpful and Mark As Answer where appropriate.
    Wednesday, June 24, 2009 7:35 PM
  • I realize this is a bit late to reply, but whatever.

     

    Yes, the Windows Vista and Windows 7 Platform SDKs include headers for DirectX, except for dxguid.lib. This library is not necessary.

     

    To compile the relevant GUID objects into your source code, include all of the DirectX headers you include wherever else in your project, with the relevant DIRECT*_VERSION macros declared, but include <InitGuid.h> before them, like so:

    #include <InitGuid.h>

    #define DIRECTINPUT_VERSION 0x0800

    #include <dinput.h>

    #include <dsound.h>

     

    If you include those headers in your precompiled header, simply include InitGuid.h before your precompiled header in a single C/C++ source file in your project to declare the GUIDs as objects instead of external references.

    Saturday, January 15, 2011 1:58 AM
  • I love Chris Moeller's solution!

    thanks!!!

    Saturday, October 15, 2011 2:25 PM
  • wow! include the initguid.h solved my problem which my project previously compiled with DirectX8.1 and now I have to upgrade from 32bit to 64bit application and it couldn't compile with DirectX8.1 anymore.

    I also try to link to windows sdk v7.0a (Visual Studio 2010) and it threw me

    error LNK2001: unresolved external symbol IID_IDirectInput8A

    error LNK2001: unresolved external symbol GUID_XAxis and ....

    furthermore, dxguid.lib and dxerr8.lib are no longer in windows sdk.

    So I don't think I need the dxguid.lib and dxerr8.lib anymore.

    Friday, March 4, 2016 7:30 AM
  • thanks
    Friday, August 12, 2016 12:18 PM