C++ 使用Catboost C评估库API

C++ 使用Catboost C评估库API,c++,c,api,yandex,catboost,C++,C,Api,Yandex,Catboost,我想使用中提到的C Catboost API。本页的第一步是: 链接所需的库(libcatboostmodel.so | dll | dylib) 我不知道如何准确地进行同样的工作。有人能帮我解决这个可能微不足道的疑问吗?最好采用循序渐进的方法 作为第一步,我还无法创建共享库(libcatboostmodel.so | dll | dylib)。在执行Makefile(make-f make/model_interface.CLANG50-LINUX-X86_64.Makefile)时,我得到以

我想使用中提到的C Catboost API。本页的第一步是:

链接所需的库(libcatboostmodel.so | dll | dylib)

我不知道如何准确地进行同样的工作。有人能帮我解决这个可能微不足道的疑问吗?最好采用循序渐进的方法

作为第一步,我还无法创建共享库(libcatboostmodel.so | dll | dylib)。在执行Makefile(
make-f make/model_interface.CLANG50-LINUX-X86_64.Makefile
)时,我得到以下错误:

mkdir-p'/home/CPUser/CPP/catboost/catboost/libs/helpers'
/usr/bin/clang++--target=x86_64-linux-gnu-c-o'/home/CPUser/CPP/catboost/catboost/libs/helpers/array_subset.CPP.pic.o'/home/CPUser/CPP/catboost/libs/helpers/array_subset.CPP'-I/home/CPUser/CPP/catboost'-I/CPP/catboost'-I/home/CPUser/CPP/catboost'-I/CPUser/CPP/catboost/libs/linux'“-I/home/CPUser/CPP/catboost/contrib/libs/linux headers/_-nf”“-I/home/CPUser/CPP/catboost/contrib/libs/cxsupp/libcxx/include”“-I/home/CPUser/catboost/contrib/cxsupp/libcxrt”“-I/home/CPUser/CPP/catboost/contrib/libs/libs/zlib/include”“-I/home/CPUser/CPP/catboost/contrib/libs/双转换/include”“-fdebug-prefix-map=/home/CPUser/CPP/catboost=/-B'-Xclang-fdebug-compilation dir-Xclang/tmp-pipe-m64-O3-g-ggnu-pubnames-fexceptions-fuse-init-array-W-Wall-Wno圆括号-DFAKEID=5020880'-DARCADIA_-ROOT=/home/CPUser/CPP/catboost'-DARCADIA_-BUILD_-ROOT=/home/CPUser/CPP/catboost'-CPP/catboost'-D"-D"-DŜ-DŜ-t-D_LIBCPP_ENABLE_CXX17_REMOVED_FEATURES-D_LARGEFILE_SOURCE-D_STDC_CONSTANT_MACROS-D_STDC_FORMAT_MACROS-D_FILE_OFFSET_BITS=64-D_GNU_SOURCE-DNDEBUG-D_LONG_支持-DSSE_ENABLED=1-DSSE3_ENABLED=1-DSSE3_-ENABLED=1-DSSE41_-ENABLED=1-dsse42enabled=1-DSSE42_=1-dpopu=6-boost_-debust=1-debust-D)-Nostinc++-fPIC-msse2-msse3-msse4.1-msse4.2-mpopcnt-mcx16-fPIC-std=c++1z-Woverloaded虚拟-Wno无效偏移-Wno属性-Wno动态异常规范-Wno寄存器-Wimport预处理器指令pedantic-Wno-c++17扩展-Wno异常-Wno不一致缺失覆盖-Wno未定义的var模板-Wno返回标准移动-DCATBOOST_OPENSOURCE=yes-nostinc++
警告:未知警告选项“-Wno动态异常规范”;你是说“-Wno缺少异常规范”吗?[-Wunknown警告选项]
警告:未知警告选项'-Wno-c++17扩展'[-Wunknown警告选项]
警告:未知警告选项“-Wno undefined var template”;你是说'-Wno未定义的内部''?[-Wunknown警告选项]
警告:未知警告选项“-Wno返回标准移动”[-Wunknown警告选项]
在/home/CPUser/CPP/catboost/catboost/libs/helpers/array_subset包含的文件中。CPP:1:
在/home/CPUser/CPP/catboost/catboost/libs/helpers/array_subset.h:4中包含的文件中:
在/home/CPUser/CPP/catboost/catboost/libs/helpers/dynamic_iterator.h:3中包含的文件中:
包含在/home/CPUser/CPP/catboost/catboost/private/libs/index_range/index_range.h:9中的文件中:
在/home/CPUser/CPP/catboost/library/CPP/binsaver/bin_saver.h:13中包含的文件中:
在/home/CPUser/CPP/catboost/util/generic/variant.h中包含的文件中:28:
/home/CPUser/CPP/catboost/contrib/libs/cxxsupp/libcxx/include/variant:1146:27:错误:应为“;”使用声明后
使用_base::operator()。。。;
^
/home/CPUser/CPP/catboost/contrib/libs/cxxsupp/libcxx/include/variant:1146:9:错误:使用声明包含未扩展的参数包“\u base”
使用_base::operator()。。。;
^
在/home/CPUser/CPP/catboost/catboost/libs/helpers/array_subset包含的文件中。CPP:1:
在/home/CPUser/CPP/catboost/catboost/libs/helpers/array_subset.h:4中包含的文件中:
在/home/CPUser/CPP/catboost/catboost/libs/helpers/dynamic_iterator.h:3中包含的文件中:
包含在/home/CPUser/CPP/catboost/catboost/private/libs/index_range/index_range.h:9中的文件中:
/home/CPUser/CPP/catboost/library/CPP/binsaver/bin_saver.h:446:16:错误:在“if”之后应为“(”
如果constexpr(sizeof…(TTail)==0){
^
/home/CPUser/CPP/catboost/library/CPP/binsaver/bin_saver.h:445:35:警告:未使用的参数“binsaver”[-Wunused参数]
静态无效Do(IBinSaver&binSaver、ui32类型索引、TVariantClass*pData){
^
/home/CPUser/CPP/catboost/library/CPP/binsaver/bin_saver.h:445:50:警告:未使用的参数“typeIndex”[-Wunused参数]
静态无效Do(IBinSaver&binSaver、ui32类型索引、TVariantClass*pData){
^
/home/CPUser/CPP/catboost/library/CPP/binsaver/bin_saver.h:445:76:警告:未使用的参数“pData”[-Wunused参数]
静态无效Do(IBinSaver&binSaver、ui32类型索引、TVariantClass*pData){
^
在/home/CPUser/CPP/catboost/catboost/libs/helpers/array_subset包含的文件中。CPP:1:
在/home/CPUser/CPP/catboost/catboost/libs/helpers/array_subset.h:7中包含的文件中:
/home/CPUser/CPP/catboost/catboost/libs/helpers/maybe_-owning_-array_-holder.h:161:12:错误:应为'('if'之后的'
如果constexpr(std::is_same_v){
^
/home/CPUser/CPP/catboost/catboost/libs/helpers/maybe_owning_array_holder.h:160:95:警告:未使用的参数'src'[-Wunused参数]
TMaybeOwningArrayHolder CreateOwningWithMaybeTypeCast(TMaybeOwningArrayHolder src){
^
生成8个警告和4个错误。
make/model_interface.CLANG7-LINUX-X86_64.makefile:197:recipe for target'/home/CPUser/CPP/catboost/catboost/libs/helpers/array_subset.CPP.pic.o'失败
make:**[/home/CPUser/CPP/catboost/catboost/libs/helpers/array_subset.CPP.pic.o]错误1

用叮当声9代替