error LNK2019: 无法解析的外部符号
2015-03-07 10:41
411 查看
此错误多是由于符号所在的lib包没有被解析的问题。
我的是由于GetModuleFileNameEx 无法解析,跟进其定义处得知其在psapi.lib;中 添加这个之后解决了该问题。
一般出现lnk2019错误都是库文件没添加造成的。 项目--》属性--》配置属性--》链接器-》输入--》附加依赖项 在其中加入所需库文件,同时在“链接器--》常规--》附加库目录”中填入相应库名。
我的是由于GetModuleFileNameEx 无法解析,跟进其定义处得知其在psapi.lib;中 添加这个之后解决了该问题。
相关文章推荐
- C++中使用类模板时出现:“error LNK2019: 无法解析的外部符号”的解决办法
- 碰到“error LNK2019: 无法解析的外部符号”
- error LNK2019: 无法解析的外部符号 _UART_TurnOnPower,该符号在函数 _srv_prof_earphone_plugout_hdlr 中被引用
- 【转】error LNK2019: 无法解析的外部符号 "__declspec(dllimport)
- error LNK2019: 无法解析的外部符号 该符号在函数 中
- libcmtd.lib(crt0.obj) : error LNK2019: 无法解析的外部符号 _main
- error LNK2019: 无法解析的外部符号 该符号在函数 中
- error LNK2019: 无法解析的外部符号 __imp__wcsftime,该符号在函数 "public: virtual long __thiscall CUVideoTransHost::Transform
- error LNK2019 无法解析的外部符号 vs2005
- error LNK2019: 无法解析的外部符号 ___glutInitWithExit@12,该符号在函数 _glutInit_ATEXIT_HACK@8 中被引用 1>GEARS.obj : error LNK2019: 无法解析的外部符号 ___gl
- error LNK2019: 无法解析的外部符号 _cvHaarDetectObjects,该符号在函数 "void __cdecl detect_and_draw(struct _IplImage
- error LNK2019: 无法解析的外部符号
- 碰到“error LNK2019: 无法解析的外部符号”
- 错误 error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用
- error LNK2019: 无法解析的外部符号
- “error LNK2019: 无法解析的外部符号 _main,该符号在函数 ___tmainCRTStartup 中被引用”解决方法。
- VC编译错误:error LNK2019: 无法解析的外部符号 "void __stdcall _com_issue_error(long)" (?_com_issue_error@@YGXJ@Z),该符号在函数 "void __cdecl _com_ut
- APR lib 链接出现”error LNK2019: 无法解析的外部符号 __imp__apr_initialize“ 解决办法
- error LNK2019: 无法解析的外部符号 _WinMain@16
- error LNK2019: 无法解析的外部符号 _WinMain@16,该符号在函数 ___tmainCR...