error LNK2019: unresolved external symbol "__declspec(dllimport) const CReadUserInfo::`vftable'" (__

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/sky79/article/details/47002859

这里写图片描述
使用VS2010编写DLL工程时出现如下错误
Creating library E:\Product1\DlagDll\Debug\DlagDll.lib and object E:\Product1\DlagDll\Debug\DlagDll.exp
1>ReadUserInfo.obj : error LNK2019: unresolved external symbol “_declspec(dllimport) const CReadUserInfo::`vftable’” (__imp??_7CReadUserInfo@@6B@) referenced in function “public: __thiscall CReadUserInfo::CReadUserInfo(void)” (??0CReadUserInfo@@QAE@XZ)
1>E:\Product1\DlagDll\Debug\DlagDll.dll : fatal error LNK1120: 1 unresolved externals

在VS2010工程的project->setting->C/C++->Preprocessor definitions中添加宏定义即可

阅读更多
想对作者说点什么?

博主推荐

换一批

没有更多推荐了,返回首页