无法解析的外部符号 __declspec(dllimport)
我在用VS进行二次开发的时候,出现下面问题(VC++ 6.0运行正常),望高手给与指点,感谢!
error LNK2019:无法解析的外部符号 "__declspec(dllimport) public: static struct CRuntimeClass * __stdcall CGisView::GetThisClass(void)" (__imp_?GetThisClass@CGisView@@SGPAUCRuntimeClass@@XZ),该符号在函数 "protected: static struct CRuntimeClass * __stdcall Ct2View::_GetBaseClass(void)" (?_GetBaseClass@Ct2View@@KGPAUCRuntimeClass@@XZ) 中被引用
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: static struct AFX_MSGMAP const * __stdcall CGisView::GetThisMessageMap(void)" (__imp_?GetThisMessageMap@CGisView@@KGPBUAFX_MSGMAP@@XZ),该符号在函数 "protected: static struct AFX_MSGMAP const * __stdcall Ct2View::GetThisMessageMap(void)" (?GetThisMessageMap@Ct2View@@KGPBUAFX_MSGMAP@@XZ) 中被引用
error LNK2019:无法解析的外部符号 "__declspec(dllimport) public: static struct CRuntimeClass * __stdcall CGisView::GetThisClass(void)" (__imp_?GetThisClass@CGisView@@SGPAUCRuntimeClass@@XZ),该符号在函数 "protected: static struct CRuntimeClass * __stdcall Ct2View::_GetBaseClass(void)" (?_GetBaseClass@Ct2View@@KGPAUCRuntimeClass@@XZ) 中被引用
error LNK2019: 无法解析的外部符号 "__declspec(dllimport) protected: static struct AFX_MSGMAP const * __stdcall CGisView::GetThisMessageMap(void)" (__imp_?GetThisMessageMap@CGisView@@KGPBUAFX_MSGMAP@@XZ),该符号在函数 "protected: static struct AFX_MSGMAP const * __stdcall Ct2View::GetThisMessageMap(void)" (?GetThisMessageMap@Ct2View@@KGPBUAFX_MSGMAP@@XZ) 中被引用
...全文
相关推荐
如何解决 error LNK2019 无法解析的外部符号,该符号在函数 中被引用
这些标志错误可能导致符号无法解析。7. **外部库路径**:确认编译器能够找到所有依赖的库文件(.lib 或 .dll)。
C++常见错误大全
LINK2019 无法解析外部符号"__declspec(dllimport)" 错误该错误的出现原因是因为无法解析外部符号 `__declspec(dllimport)`。
LNK2019错误:vs2008-vc LNK2019,请高手指点
确保在DLL中使用`__declspec(dllexport)`和`__declspec(dllimport)`正确导出和导入符号。
BCB调用VC的DLL
**处理未解析外部引用问题**: - 在编译过程中可能会遇到未解析外部引用错误,这是因为BCB无法找到相应的函数实现。
declspec(dllexport)与_declspec(dllimport)的区别
使用 __declspec(dllimport) 可以将公共符号从 DLL 中导入到应用程序中,从而可以使用 DLL 中定义的公共符号。


