VS2008编译webrt错误:cerror LNK2019: unresolved external symbol "void __stdcall DeleteMediaType
2011-12-09 13:01
615 查看
该问题的原因是因为少了strmbasd.lib库的引用,该库已经由windows sdk自带,所以编译的时候需要指定该库的位置和引用,本人的是
D:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug
做完该两步,再次编译应该还会出现error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
此时需要ignore msvcrtd.lib即可
![](http://hi.csdn.net/attachment/201112/9/0_1323405823FWw1.gif)
![](http://hi.csdn.net/attachment/201112/9/0_1323405802MOwM.gif)
![](http://hi.csdn.net/attachment/201112/9/0_1323405839tsMa.gif)
再次编译:
D:\Program Files\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses\Debug
做完该两步,再次编译应该还会出现error LNK2005: "private: __thiscall type_info::type_info(class type_info const &)" (??0type_info@@AAE@ABV0@@Z) already defined in LIBCMTD.lib(typinfo.obj)
此时需要ignore msvcrtd.lib即可
如图:1
![](http://hi.csdn.net/attachment/201112/9/0_1323405823FWw1.gif)
2
![](http://hi.csdn.net/attachment/201112/9/0_1323405802MOwM.gif)
3
![](http://hi.csdn.net/attachment/201112/9/0_1323405839tsMa.gif)
再次编译:
相关文章推荐
- Qt 编译时出现“-1: error: LNK2019: unresolved external symbol "public: void __thiscall M”错误
- error LNK2019: unresolved external symbol "void __cdecl sqlcxt(void * *,unsigned int *,struct sqlexd
- Windows Mobile 编译错误解析:LNK2019: unresolved external symbol __GSHandlerCheck
- VC编译错误:error LNK2019: 无法解析的外部符号 "void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z),该符号在函数 "void __cdecl _com_ut
- vs2008编译时出现问题解决方法:MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 r
- Qt中编译出现mainwindow.obj:-1: error: LNK2019: unresolved external symbol "public: __thiscall MyWidget::M
- 解决windows mobile下的编译错误error LNK2019: unresolved external symbol
- VS2010编译错误 LNK 2019 unresolved external symbol错误解决办法
- vs2008编译时出现问题解决方法:MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16
- C++ 遇到error LNK2019: unresolved external symbol "public: void __thisca的问题
- Qt datepasssave.obj:-1: error: LNK2019: unresolved external symbol "public: void __thiscall。
- 编译UltraVNC时的Debug版本时遇到vncclient.obj : error LNK2019: unresolved external symbol _compress等错误
- 驱动简单例子编译,出现错误LNK2019:unresolved external symbol _DriverEntry@8
- error LNK2019: unresolved external symbol "public 错误的出现原因.
- error LNK2019: unresolved external symbol "wchar_t * __stdcall _com_util::Co.....
- xx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) 错误
- vs2005中使用模板出现"LNK2019 - Unresolved external Symbol" 错误
- vs2008编译时出现问题解决方法:MSVCRTD.lib(crtexew.obj) : error LNK2019: unresolved external symbol _WinMain@16 referenced in function ___tma
- error LNK2019: unresolved external symbol "__declspec(dllimport) void 遇到的问题以及解决办法
- LNK2019: unresolved external symbol _main referenced in function ___tmainCRTStartup编译出错的解决方法