vpb编译过程中遇到问题,具体错误如下:
C:\OSG\VirtualPlanetBuilder\lib\Debug\vpbd.exp
1>DataSet.obj : error LNK2001: 无法解析的外部符号"protected: virtual enum CPLErr __thiscall GDALDataset::IBuildOverviews(char const *,int,int *,int,int *,int (__stdcall*)(double,char const *,void *),void *)" ([email=?IBuildOverviews@GDALDataset@@MAE?AW4CPLErr@@PBDHPAHH1P6GHN0PAX@Z2@Z]?IBuildOverviews@GDALDataset@@MAE?AW4CPLErr@@PBDHPAHH1P6GHN0PAX@Z2@Z[/email]) 1>DataSet.obj : error LNK2001: 无法解析的外部符号"public: virtual enum CPLErr __thiscall GDALRasterBand::GetStatistics(int,int,double *,double *,double *,double *)" (?GetStatistics@GDALRasterBand@@UAE?AW4CPLErr@@HHPAN000@Z) 1>DataSet.obj : error LNK2001: 无法解析的外部符号"public: virtual enum CPLErr __thiscall GDALRasterBand::GetHistogram(double,double,int,int *,int,int,int (__stdcall*)(double,char const *,void *),void *)" (?GetHistogram@GDALRasterBand@@UAE?AW4CPLErr@@NNHPAHHHP6GHNPBDPAX@Z2@Z) 1>DataSet.obj : error LNK2001: 无法解析的外部符号"public: virtual enum CPLErr __thiscall GDALRasterBand::GetDefaultHistogram(double *,double *,int *,int * *,int,int (__stdcall*)(double,char const *,void *),void *)" (?GetDefaultHistogram@GDALRasterBand@@UAE?AW4CPLErr@@PAN0PAHPAPAHHP6GHNPBDPAX@Z4@Z) 1>DataSet.obj : error LNK2001: 无法解析的外部符号"public: virtual enum CPLErr __thiscall GDALRasterBand::SetDefaultHistogram(double,double,int,int *)" (?SetDefaultHistogram@GDALRasterBand@@UAE?AW4CPLErr@@NNHPAH@Z) 1>DataSet.obj : error LNK2001: 无法解析的外部符号"public: virtual class GDALRasterAttributeTable const * __thiscall GDALRasterBand::GetDefaultRAT(void)" (?GetDefaultRAT@GDALRasterBand@@UAEPBVGDALRasterAttributeTable@@XZ) 1>DataSet.obj : error LNK2001: 无法解析的外部符号"public: virtual enum CPLErr __thiscall GDALRasterBand::SetDefaultRAT(class GDALRasterAttributeTable const *)" (?SetDefaultRAT@GDALRasterBand@@UAE?AW4CPLErr@@PBVGDALRasterAttributeTable@@@Z) 1>DataSet.obj : error LNK2019: 无法解析的外部符号_OSRDestroySpatialReference@4,该符号在函数"public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl vpb:ataSet::coordinateSystemStringToWTK(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?coordinateSystemStringToWTK@DataSet@vpb@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_OSRExportToWkt@8,该符号在函数"public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl vpb::DataSet::coordinateSystemStringToWTK(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?coordinateSystemStringToWTK@DataSet@vpb@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_OSRSetFromUserInput@8,该符号在函数"public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl vpb::DataSet::coordinateSystemStringToWTK(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?coordinateSystemStringToWTK@DataSet@vpb@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_OSRNewSpatialReference@4,该符号在函数"public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl vpb::DataSet::coordinateSystemStringToWTK(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?coordinateSystemStringToWTK@DataSet@vpb@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_CPLErrorReset@0,该符号在函数"public: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl vpb::DataSet::coordinateSystemStringToWTK(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?coordinateSystemStringToWTK@DataSet@vpb@@SA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV34@@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALClose@4,该符号在函数"public: virtual __thiscall vpb::DataSet::SourceData::~SourceData(void)" (??1SourceData@DataSet@vpb@@UAE@XZ) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALApplyGeoTransform@28,该符号在函数"public: float __thiscall vpb::DataSet::SourceData::getInterpolatedValue(class GDALRasterBand *,double,double)" (?getInterpolatedValue@SourceData@DataSet@vpb@@QAEMPAVGDALRasterBand@@NN@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALInvGeoTransform@8,该符号在函数"public: float __thiscall vpb::DataSet::SourceData::getInterpolatedValue(class GDALRasterBand *,double,double)" (?getInterpolatedValue@SourceData@DataSet@vpb@@QAEMPAVGDALRasterBand@@NN@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALSuggestedWarpOutput@24,该符号在函数"public: static struct vpb::DataSet::SourceData * __cdecl vpb::DataSet::SourceData::readData(class vpb::DataSet::Source *)" (?readData@SourceData@DataSet@vpb@@SAPAU123@PAVSource@23@@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALOpen@8,该符号在函数"public: static struct vpb::DataSet::SourceData * __cdecl vpb::DataSet::SourceData::readData(class vpb::DataSet::Source *)" (?readData@SourceData@DataSet@vpb@@SAPAU123@PAVSource@23@@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALGetProjectionRef@4,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALGetRasterXSize@4,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALGetRasterYSize@4,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALSetRasterNoDataValue@12,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALDummyProgress@16,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALTermProgress@16,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALCreateWarpOptions@0,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALSetRasterColorTable@8,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALGetRasterColorTable@4,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALSetGeoTransform@8,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALSetProjection@8,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALCreate@28,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALGetRasterCount@4,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALGetRasterDataType@4,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALGetRasterBand@8,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALGetMetadataItem@12,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALGetDriverByName@4,该符号在函数"public: class vpb::DataSet::Source * __thiscall vpb::DataSet::Source::doReproject(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class osg::CoordinateSystemNode *,double)const " (?doReproject@Source@DataSet@vpb@@QBEPAV123@ABV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@PAVCoordinateSystemNode@osg@@N@Z) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALBuildOverviews@32,该符号在函数"public: void __thiscall vpb::DataSet::Source::buildOverviews(void)" (?buildOverviews@Source@DataSet@vpb@@QAEXXZ) 中被引用 1>DataSet.obj : error LNK2019: 无法解析的外部符号_GDALAllRegister@0,该符号在函数"protected: void __thiscall vpb::DataSet::init(void)" (?init@DataSet@vpb@@IAEXXZ) 中被引用 1>C:\OSG\VirtualPlanetBuilder\lib\Debug\vpbd.dll : fatal error LNK1120: 40 个无法解析的外部命令 1>生成日志保存在“file://c:\OSG\VirtualPlanetBuilder\src\vpb\vpb.dir\Debug\BuildLog.htm”
请教一下,是哪里出的错,谢谢! |