典型错误提示如下

error LNK2019: 无法解析的外部符号 [email protected],该符号在函数 "public: __thiscall APPInit::APPInit(void)" ([email protected]@[email protected]) 中被引用
error LNK2019: 无法解析的外部符号 [email protected],该符号在函数 "public: __thiscall APPInit::~APPInit(void)" ([email protected]@[email protected]) 中被引用

解决方案如下

  • 源文件包含#pragma comment(lib,"gdiplus.lib");

  • 以vs2013为例,设置静态库查找路径

 $(WindowsSDK_LibraryPath_x86);

关于windows系统中静态库链接找不到的问题 

按这种方式设置,可以知道VS到系统目录去查找随系统安装的库。 

相关文章: