Home > Software engineering >  Directshow vs2010 LNK2001 compilation
Directshow vs2010 LNK2001 compilation

Time:09-21

I the installation of the environment is now such vs2010 + Windows sdk7.1 + DXSDK_Feb10

In engineering reference inside the
C: \ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Samples \ multimedia \ directshow \ baseclasses
C: \ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Samples \ multimedia \ directshow \ common
C: \ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Include
D: \ DXSDK \ Include


Citing the lib directory
C: \ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Samples \ multimedia \ directshow \ baseclasses \ Debug
C: \ Program Files \ Microsoft SDKs \ Windows \ v7.1 \ Lib
D: \ DXSDK \ Lib

When code is compiled to some mistake, I checked the saying is referenced in the linker strmiids. Lib. Strmbasd. Lib, join after or error, error message:
The error LNK2001: cannot resolve the external symbol of _CLSID_DVBTuningSpace
1> MFCApplication2Dlg. Obj: error LNK2001: cannot resolve the external symbol of _IID_IDVBTuningSpace2
1> MFCApplication2Dlg. Obj: error LNK2001: cannot resolve the external symbol of _CLSID_DVBCLocator
1> MFCApplication2Dlg. Obj: error LNK2001: cannot resolve the external symbol of _IID_IDVBCLocator
1> MFCApplication2Dlg. Obj: error LNK2001: cannot resolve the external symbol of _CLSID_SystemTuningSpaces
1> MFCApplication2Dlg. Obj: error LNK2001: cannot resolve the external symbol of _IID_ITuner
1> Strmbasd. Lib (wxutil. Obj) : error LNK2019: cannot resolve the external symbol of __imp__timeGetTime @ 0, the symbol in the function of "public: int __thiscall CAMMsgEvent: : WaitMsg (unsigned long)" (? WaitMsg @ CAMMsgEvent @ @ QAEHK @ Z) referenced
1> Strmbasd. Lib (wxdebug. Obj) : error LNK2001: cannot resolve the external symbol of __imp__timeGetTime @ 0
1> Strmbasd. Lib (wxutil. Obj) : error LNK2019: cannot resolve the external symbol of __imp__timeSetEvent @ 20, the symbol in the function "unsigned int __cdecl CompatibleTimeSetEvent (unsigned int, unsigned int, void (__stdcall *) (unsigned int, unsigned int, unsigned long, unsigned long, unsigned long), unsigned long, unsigned int)" (? CompatibleTimeSetEvent @ @ YAIIIP6GXIIKKK @ ZKI @ Z) referenced
1> Strmbasd. Lib (wxdebug. Obj) : error LNK2019: cannot resolve ___report_rangecheckfailure external symbols, the symbol in the function of "public: __thiscall CDisp: : CDisp (__int64, int)" (?????? 0 cdisp @ @ QAE @ _JH @ Z) referenced
1> F: \ test \ bdatest \ MFCApplication2 \ Debug \ MFCApplication2 exe: fatal error LNK1120: nine cannot resolve the external command

This how to solve ah, experienced warrior please help, thank you!

CodePudding user response:

Should be less link library
# pragma comment (lib, "winmm. Lib")
# pragma comment (lib, "strmiids. Lib")



  • Related