使用SuperMap iObjects C++报错error LNK2019: 无法解析的外部符号

使用SuperMap iObjects C++报错:

>MFCApplication1View.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class OGDC::OgdcMBString __thiscall UGC::UGMapStorages::GetNameAt(int)const " (__imp_?GetNameAt@UGMapStorages@UGC@@QBE?AVOgdcMBString@OGDC@@H@Z),该符号在函数 "public: void __thiscall CMFCApplication1View::OnFileOpen(void)" (?OnFileOpen@CMFCApplication1View@@QAEXXZ) 中被引用

1>MFCApplication1View.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: unsigned char __thiscall UGC::UGWorkspace::Open(class OGDC::OgdcMBString const &,class OGDC::OgdcMBString const &)" (__imp_?Open@UGWorkspace@UGC@@QAEEABVOgdcMBString@OGDC@@0@Z),该符号在函数 "public: void __thiscall CMFCApplication1View::OnFileOpen(void)" (?OnFileOpen@CMFCApplication1View@@QAEXXZ) 中被引用

1>MFCApplication1View.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: unsigned char __thiscall UGC::UGMap::Open(class OGDC::OgdcMBString const &)" (__imp_?Open@UGMap@UGC@@QAEEABVOgdcMBString@OGDC@@@Z),该符号在函数 "public: void __thiscall CMFCApplication1View::OnFileOpen(void)" (?OnFileOpen@CMFCApplication1View@@QAEXXZ) 中被引用

1>UGSymbolListCtrl.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class OGDC::OgdcMBString __thiscall UGC::UGSymbolInfo::GetSymbolName(void)" (__imp_?GetSymbolName@UGSymbolInfo@UGC@@QAE?AVOgdcMBString@OGDC@@XZ),该符号在函数 "protected: void __thiscall CUGSymbolListCtrl::OnMouseMove(unsigned int,class CPoint)" (?OnMouseMove@CUGSymbolListCtrl@@IAEXIVCPoint@@@Z) 中被引用

1>UGSymbolTreeCtrl.obj : error LNK2001: 无法解析的外部符号 "__declspec(dllimport) public: class OGDC::OgdcMBString __thiscall UGC::UGSymbolInfo::GetSymbolName(void)" (__imp_?GetSymbolName@UGSymbolInfo@UGC@@QAE?AVOgdcMBString@OGDC@@XZ)

1>UGSymbolTreeCtrl.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: int __thiscall UGC::UGGOLibraryManager::AddGOLibrary(class OGDC::OgdcMBString)" (__imp_?AddGOLibrary@UGGOLibraryManager@UGC@@QAEHVOgdcMBString@OGDC@@@Z),该符号在函数 "public: void __thiscall CUGSymbolTreeCtrl::InitUGSymbolTree(void)" (?InitUGSymbolTree@CUGSymbolTreeCtrl@@QAEXXZ) 中被引用

1>..\..\bind\MFC

此报错是因为没有添加_UGUNICODE,添加后即可编译成功


你可能感兴趣的:(使用SuperMap iObjects C++报错error LNK2019: 无法解析的外部符号)