使用产品:iObject c++ 9.1.0-16528-69362-win 操作系统:win10 x64
联系方式: QQ:694951098
用iObject c++ 实现GettingStarted案例过程中,已实现“搭建应用程序界面”并成功运行。在完成“打开工作空间中的地图并显示”后编译时,#include"Map/UGMap.h"就会提示无法解析的外部符号的错误。
1>------ 已启动生成: 项目: GettingStarted, 配置: Debug Win32 ------
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(357,5): warning MSB8004: Output Directory does not end with a trailing slash. This build instance will add the slash as it is required to allow proper evaluation of the Output Directory.
1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(935,5): warning MSB8027: Two or more files with the name of moc_gettingstarted.cpp will produce outputs to the same location. This can lead to an incorrect build result. The files involved are GeneratedFiles\Debug\moc_gettingstarted.cpp, GeneratedFiles\Release\moc_gettingstarted.cpp.
1> gettingstarted.cpp
1> 正在创建库 ..\Win32\Debug\GettingStarted.lib 和对象 ..\Win32\Debug\GettingStarted.exp
1>gettingstarted.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: __thiscall UGC::UGFeatureClassDefn::UGFeatureClassDefn(class UGC::UGFeatureClassDefn const &)" (__imp_??0UGFeatureClassDefn@UGC@@QAE@ABV01@@Z),该符号在函数 "public: void __thiscall std::allocator<class UGC::UGFeatureClassDefn>::construct<class UGC::UGFeatureClassDefn,class UGC::UGFeatureClassDefn &>(class UGC::UGFeatureClassDefn *,class UGC::UGFeatureClassDefn &)" (??$construct@VUGFeatureClassDefn@UGC@@AAV12@@?$allocator@VUGFeatureClassDefn@UGC@@@std@@QAEXPAVUGFeatureClassDefn@UGC@@AAV23@@Z) 中被引用
1>gettingstarted.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: virtual __thiscall UGC::UGFeatureClassDefn::~UGFeatureClassDefn(void)" (__imp_??1UGFeatureClassDefn@UGC@@UAE@XZ),该符号在函数 "public: __thiscall std::pair<int const ,class UGC::UGFeatureClassDefn>::~pair<int const ,class UGC::UGFeatureClassDefn>(void)" (??1?$pair@$$CBHVUGFeatureClassDefn@UGC@@@std@@QAE@XZ) 中被引用
1>gettingstarted.obj : error LNK2019: 无法解析的外部符号 "__declspec(dllimport) public: class UGC::UGFeatureClassDefn & __thiscall UGC::UGFeatureClassDefn::operator=(class UGC::UGFeatureClassDefn const &)" (__imp_??4UGFeatureClassDefn@UGC@@QAEAAV01@ABV01@@Z),该符号在函数 "class UGC::UGFeatureClassDefn * __cdecl std::_Copy_impl<class UGC::UGFeatureClassDefn *,class UGC::UGFeatureClassDefn *>(class UGC::UGFeatureClassDefn *,class UGC::UGFeatureClassDefn *,class UGC::UGFeatureClassDefn *,struct std::_Nonscalar_ptr_iterator_tag)" (??$_Copy_impl@PAVUGFeatureClassDefn@UGC@@PAV12@@std@@YAPAVUGFeatureClassDefn@UGC@@PAV12@00U_Nonscalar_ptr_iterator_tag@0@@Z) 中被引用
1>..\Win32\Debug\\GettingStarted.exe : fatal error LNK1120: 3 个无法解析的外部命令
========== 生成: 成功 0 个,失败 1 个,最新 1 个,跳过 0 个 ==========