gpt4 book ai didi

c++ - 在Visual Studio C++中使用Shark机器学习库

转载 作者:行者123 更新时间:2023-12-02 11:01:56 25 4
gpt4 key购买 nike

我想在Visual Studio 2013中使用Shark库。他们在Shark-3.0.0 \ examples中提供了以下示例:

#include <shark/Core/Shark.h>
#include <iostream>

int main(int argc, char ** argv)
{
shark::Shark::info(std::cout);
}

但是,我收到以下错误:

错误C1083:无法打开包含文件:'shark/Core/shark.h':没有此类文件或目录。

实际上,Shark-3.0.0 \ include \ shark \ Core中的头文件名是Shark.h.in。但是,如果我将 #include <shark/Core/shark.h>更改为 #include <shark/Core/shark.h.in>,则会收到以下错误:

错误C1083:无法打开包含文件:'boost/version.hpp':没有此类文件或目录。

最佳答案

Shark是作为源包提供的库,(根据其README.txt中的说明)需要在目标计算机上进行编译:

INSTALLATION / DOCUMENTATION

The entry point to the Shark library documentation is located at doc/index.html . For installation instructions, please click on "Getting started" on that page. Short version of installation guide: issue "ccmake ." in the main directory to select your build options, and afterwards issue "make" in the main directory -- you should be done (assuming Boost and CMake were installed). See the documentation for detailed instructions.



更详细的安装说明 available from the library provider

请注意,Shark似乎依赖于 Boost,因此请首先安装……

关于c++ - 在Visual Studio C++中使用Shark机器学习库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35272423/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com