Please help

When I try to build an old project which uses directx to show videos.

there are errors as follows

Linking...
ConfigDlg.obj : error LNK2001: unresolved external symbol _CLSID_AudioRendererCategory
ConfigDlg.obj : error LNK2001: unresolved external symbol _CLSID_AudioInputDeviceCategory
ConfigDlg.obj : error LNK2001: unresolved external symbol _CLSID_VideoInputDeviceCategory
ConfigDlg.obj : error LNK2001: unresolved external symbol _CLSID_SystemDeviceEnum
CyklOneDlg.obj : error LNK2001: unresolved external symbol _CLSID_SystemDeviceEnum
Graph.obj : error LNK2001: unresolved external symbol _CLSID_SystemDeviceEnum
ConfigDlg.obj : error LNK2001: unresolved external symbol _IID_ICreateDevEnum
CyklOneDlg.obj : error LNK2001: unresolved external symbol _IID_ICreateDevEnum
Graph.obj : error LNK2001: unresolved external symbol _IID_ICreateDevEnum
ConfigDlg.obj : error LNK2001: unresolved external symbol "int __stdcall lstrlenWInternal(unsigned short const *)" ( lstrlenWInternal@@YGHPBG@Z)
ConfigDlg.obj : error LNK2001: unresolved external symbol _IID_IAMVfwCaptureDialogs
Graph.obj : error LNK2001: unresolved external symbol _IID_IAMVfwCaptureDialogs
ConfigDlg.obj : error LNK2001: unresolved external symbol _IID_IBaseFilter
crossbar.obj : error LNK2001: unresolved external symbol _IID_IBaseFilter
Graph.obj : error LNK2001: unresolved external symbol _IID_IBaseFilter
ServerConnection.obj : error LNK2001: unresolved external symbol _IID_IBaseFilter
crossbar.obj : error LNK2001: unresolved external symbol "void __cdecl DbgLogInfo(unsigned long,unsigned long,char const *,...)" ( DbgLogInfo@@YAXKKPBDZZ)
crossbar.obj : error LNK2001: unresolved external symbol "public: __thiscall CBaseList::~CBaseList(void)" ( 1CBaseList@@QAE@XZ)
crossbar.obj : error LNK2001: unresolved external symbol _IID_IAMCrossbar
crossbar.obj : error LNK2001: unresolved external symbol "public: __thiscall CBaseList::CBaseList(char *,int)" ( 0CBaseList@@QAE@PADH@Z)
crossbar.obj : error LNK2001: unresolved external symbol "protected: void * __thiscall CBaseList::GetNextI(struct __POSITION * &)const " ( GetNextI@CBaseList@@IBEPAXAAPAU__POSITION@@@Z)
crossbar.obj : error LNK2001: unresolved external symbol "protected: void * __thiscall CBaseList::RemoveHeadI(void)" ( RemoveHeadI@CBaseList@@IAEPAXXZ)
crossbar.obj : error LNK2001: unresolved external symbol "protected: struct __POSITION * __thiscall CBaseList::AddTailI(void *)" ( AddTailI@CBaseList@@IAEPAU__POSITION@@PAX@Z)
crossbar.obj : error LNK2001: unresolved external symbol "protected: void * __thiscall CBaseList::GetI(struct __POSITION *)const " ( GetI@CBaseList@@IBEPAXPAU__POSITION@@@Z)
CyklOne.obj : error LNK2001: unresolved external symbol "void __stdcall DbgInitialise(struct HINSTANCE__ *)" ( DbgInitialise@@YGXPAUHINSTANCE__@@@Z)
CyklOneDlg.obj : error LNK2001: unresolved external symbol _CLSID_AudioCompressorCategory
Graph.obj : error LNK2001: unresolved external symbol _CLSID_AudioCompressorCategory
CyklOneDlg.obj : error LNK2001: unresolved external symbol _CLSID_VideoCompressorCategory
Graph.obj : error LNK2001: unresolved external symbol _CLSID_VideoCompressorCategory
CyklOneDlg.obj : error LNK2001: unresolved external symbol _IID_IVideoWindow
Graph.obj : error LNK2001: unresolved external symbol _IID_IVideoWindow
ServerConnection.obj : error LNK2001: unresolved external symbol _IID_IVideoWindow
Graph.obj : error LNK2001: unresolved external symbol _IID_IMediaControl
Graph.obj : error LNK2001: unresolved external symbol _CLSID_NullRenderer
Graph.obj : error LNK2001: unresolved external symbol _IID_IAMBufferNegotiation
Graph.obj : error LNK2001: unresolved external symbol "long __cdecl GetPin(struct IBaseFilter *,enum _PinDirection,int,struct IPin * *)" ( GetPin@@YAJPAUIBaseFilter@@W4_PinDirection@@HPAPAUIPin@@@Z)
Graph.obj : error LNK2001: unresolved external symbol _MEDIATYPE_Audio
Graph.obj : error LNK2001: unresolved external symbol _PIN_CATEGORY_ANALOGVIDEOIN
Graph.obj : error LNK2001: unresolved external symbol _AMPROPSETID_Pin
Graph.obj : error LNK2001: unresolved external symbol _IID_IKsPropertySet
Graph.obj : error LNK2001: unresolved external symbol "void __stdcall DeleteMediaType(struct _AMMediaType *)" ( DeleteMediaType@@YGXPAU_AMMediaType@@@Z)
Graph.obj : error LNK2001: unresolved external symbol _FORMAT_VideoInfo
Graph.obj : error LNK2001: unresolved external symbol _IID_IAMStreamConfig
Graph.obj : error LNK2001: unresolved external symbol _MEDIATYPE_Video
Graph.obj : error LNK2001: unresolved external symbol _PIN_CATEGORY_CAPTURE
Graph.obj : error LNK2001: unresolved external symbol _MEDIATYPE_Interleaved
Graph.obj : error LNK2001: unresolved external symbol _IID_IAMVideoCompression
Graph.obj : error LNK2001: unresolved external symbol _IID_IMediaEventEx
Graph.obj : error LNK2001: unresolved external symbol _FORMAT_DvInfo
Graph.obj : error LNK2001: unresolved external symbol _CLSID_VideoRenderer
ServerConnection.obj : error LNK2001: unresolved external symbol _CLSID_VideoRenderer
Graph.obj : error LNK2001: unresolved external symbol _CLSID_SmartTee
Graph.obj : error LNK2001: unresolved external symbol _CLSID_CaptureGraphBuilder2
Graph.obj : error LNK2001: unresolved external symbol _IID_ICaptureGraphBuilder2
Graph.obj : error LNK2001: unresolved external symbol _IID_IFilterGraph2
Graph.obj : error LNK2001: unresolved external symbol _CLSID_FilterGraph
Graph.obj : error LNK2001: unresolved external symbol _IID_IGraphBuilder
Graph.obj : error LNK2001: unresolved external symbol _MEDIASUBTYPE_MPEG1Packet
Graph.obj : error LNK2001: unresolved external symbol _GetSubtypeNameA@4
Graph.obj : error LNK2001: unresolved external symbol "public: char * __thiscall CGuidNameList::operator[](struct _GUID const &)" ( ACGuidNameList@@QAEPADABU_GUID@@@Z)
Graph.obj : error LNK2001: unresolved external symbol "class CGuidNameList GuidNames" ( GuidNames@@3VCGuidNameList@@A)
Graph.obj : error LNK2001: unresolved external symbol "void __stdcall FreeMediaType(struct _AMMediaType &)" ( FreeMediaType@@YGXAAU_AMMediaType@@@Z)
ServerConnection.obj : error LNK2001: unresolved external symbol "void __stdcall FreeMediaType(struct _AMMediaType &)" ( FreeMediaType@@YGXAAU_AMMediaType@@@Z)
Graph.obj : error LNK2001: unresolved external symbol _IID_IBasicVideo
ServerConnection.obj : error LNK2001: unresolved external symbol _IID_IAMVfwCompressDialogs
SessionConfigDlg.obj : error LNK2001: unresolved external symbol _IID_IAMVfwCompressDialogs
../Debug/CyklOne.exe : fatal error LNK1120: 51 unresolved externals
Error executing link.exe.
Creating browse info file...

CyklOne.exe - 67 error(s), 5 warning(s)

I really do not know how to solve it.

Please help me.

thanks.




Answer this question

Please help

  • JanBaan

    Looks like a Unicode/non-Unicode mismatch between the build of your filter, and the build of the base classes.
  • FreakFrossard

    Moving to DirectShow forums

  • Ram Marappan

    DamonPeng wrote:

    When I try to build an old project which uses directx to show videos.

    there are errors as follows

    Linking...
    ConfigDlg.obj : error LNK2001: unresolved external symbol _CLSID_AudioRendererCategory
    ConfigDlg.obj : error LNK2001: unresolved external symbol _CLSID_AudioInputDeviceCategory
    ConfigDlg.obj : error LNK2001: unresolved external symbol _CLSID_VideoInputDeviceCategory
    ConfigDlg.obj : error LNK2001: unresolved external symbol _CLSID_SystemDeviceEnum
    CyklOneDlg.obj : error LNK2001: unresolved external symbol _CLSID_SystemDeviceEnum
    Graph.obj : error LNK2001: unresolved external symbol _CLSID_SystemDeviceEnum
    ConfigDlg.obj : error LNK2001: unresolved external symbol _IID_ICreateDevEnum
    ../Debug/CyklOne.exe : fatal error LNK1120: 51 unresolved externals
    ....

    Error executing link.exe.
    Creating browse info file...

    CyklOne.exe - 67 error(s), 5 warning(s)

    I really do not know how to solve it.

    Please help me.

    thanks.

    When I add strmiids.lib

    they becomes :

    Linking...
    ConfigDlg.obj : error LNK2001: unresolved external symbol "int __stdcall lstrlenWInternal(unsigned short const *)" ( lstrlenWInternal@@YGHPBG@Z)
    crossbar.obj : error LNK2001: unresolved external symbol "void __cdecl DbgLogInfo(unsigned long,unsigned long,char const *,...)" ( DbgLogInfo@@YAXKKPBDZZ)
    crossbar.obj : error LNK2001: unresolved external symbol "public: __thiscall CBaseList::~CBaseList(void)" ( 1CBaseList@@QAE@XZ)
    crossbar.obj : error LNK2001: unresolved external symbol "public: __thiscall CBaseList::CBaseList(char *,int)" ( 0CBaseList@@QAE@PADH@Z)
    crossbar.obj : error LNK2001: unresolved external symbol "protected: void * __thiscall CBaseList::GetNextI(struct __POSITION * &)const " ( GetNextI@CBaseList@@IBEPAXAAPAU__POSITION@@@Z)
    crossbar.obj : error LNK2001: unresolved external symbol "protected: void * __thiscall CBaseList::RemoveHeadI(void)" ( RemoveHeadI@CBaseList@@IAEPAXXZ)
    crossbar.obj : error LNK2001: unresolved external symbol "protected: struct __POSITION * __thiscall CBaseList::AddTailI(void *)" ( AddTailI@CBaseList@@IAEPAU__POSITION@@PAX@Z)
    crossbar.obj : error LNK2001: unresolved external symbol "protected: void * __thiscall CBaseList::GetI(struct __POSITION *)const " ( GetI@CBaseList@@IBEPAXPAU__POSITION@@@Z)
    CyklOne.obj : error LNK2001: unresolved external symbol "void __stdcall DbgInitialise(struct HINSTANCE__ *)" ( DbgInitialise@@YGXPAUHINSTANCE__@@@Z)
    Graph.obj : error LNK2001: unresolved external symbol _CLSID_NullRenderer
    Graph.obj : error LNK2001: unresolved external symbol "long __cdecl GetPin(struct IBaseFilter *,enum _PinDirection,int,struct IPin * *)" ( GetPin@@YAJPAUIBaseFilter@@W4_PinDirection@@HPAPAUIPin@@@Z)
    Graph.obj : error LNK2001: unresolved external symbol "void __stdcall DeleteMediaType(struct _AMMediaType *)" ( DeleteMediaType@@YGXPAU_AMMediaType@@@Z)
    Graph.obj : error LNK2001: unresolved external symbol _CLSID_SmartTee
    Graph.obj : error LNK2001: unresolved external symbol _CLSID_CaptureGraphBuilder2
    Graph.obj : error LNK2001: unresolved external symbol _IID_ICaptureGraphBuilder2
    Graph.obj : error LNK2001: unresolved external symbol _GetSubtypeNameA@4
    Graph.obj : error LNK2001: unresolved external symbol "public: char * __thiscall CGuidNameList::operator[](struct _GUID const &)" ( ACGuidNameList@@QAEPADABU_GUID@@@Z)
    Graph.obj : error LNK2001: unresolved external symbol "class CGuidNameList GuidNames" ( GuidNames@@3VCGuidNameList@@A)
    Graph.obj : error LNK2001: unresolved external symbol "void __stdcall FreeMediaType(struct _AMMediaType &)" ( FreeMediaType@@YGXAAU_AMMediaType@@@Z)
    ServerConnection.obj : error LNK2001: unresolved external symbol "void __stdcall FreeMediaType(struct _AMMediaType &)" ( FreeMediaType@@YGXAAU_AMMediaType@@@Z)
    ../Debug/CyklOne.exe : fatal error LNK1120: 19 unresolved externals
    Error executing link.exe.
    Creating browse info file...

    CyklOne.exe - 21 error(s), 0 warning(s)



  • class101

    Hi,

    Does anyone have solution now I run into the same problem when I develop my dll which will use baseclasses.

    I feel that this issue seems to be mismatch of version of .h and lib....but I can't see anything wrong in the setting.

    I use Windows SDK's dir for both .h and .lib, and both baseclasses and my project are built as using UNICODE character set....really don't know what's wrong...Sad

    If anyone has solution please kindly post.

    Thanks.


  • SarahJ

    Are you also using Visual Studio 2005 If so another thing you can check is the following:
    1) Right-click your project to get your properties page
    2) Navigate to the Configuration Properties-> C/C++ -> Language menu
    3) Make sure the "Treat wchar_t as Built-in Type" option is consistent across both the base class and your own filter project

  • Please help