_IID link errors

pfrisc01
2009-12-16
2013-08-22
  • pfrisc01
    pfrisc01
    2009-12-16

    I an trying to built a static version of the SamplePlayer (no relience on the dll's) with MS Visual Studio.

    I an getting a number "unresolved external symbol" erros having to with _IID_* symbols.  see below…

    Any thoughts?

    unresolved external symbol _IID_IFXBitStreamX
    unresolved external symbol _IID_IFXObserver
    unresolved external symbol _IID_IFXIDManager
    unresolved external symbol _IID_IFXLightSet
    etc.

     
  • Leo
    Leo
    2013-08-20

    Hey,

    i get the same error messages, but i still do not know how to fix them.
    Seems like i have forgetten to link a libary, but i still have only the

    IFXCoreStatic.lib
    IFXCorePluginStatic.lib
    IFXImportingPlugin.lib

    Some help would be nice.

     
    Last edit: Leo 2013-08-20
  • Leo
    Leo
    2013-08-22

    OK,

    I've got it, there is a definition which you must call to create the id's.
    I typed it into the .cpp file between the includes, because it must be befor the header-file of the .cpp.

    This is how it works at my project:
    - #include "stdafx.h"
    - #define IFX_INIT_GUID
    - #include "includes.h"