我建mlpack(对于C++的附加库)使用Visual Studio 2015年所有的库文件都在build文件夹内Visual Studio项目链接到库
现在当荫试图编译在视觉下面的代码添加额外的目录mlpack位置后工作室,如图added the directory我得到错误说“无法打开包含文件‘mlpack/core.hpp’:没有这样的文件或目录”
#include "stdafx.h"
#include <mlpack/core.hpp>
using namespace mlpack;
int main()
{
}
即使core.hpp是有附带mlpack文件夹 it is there!
我如何在你的项目/ C++的属性设置中添加该文件并没有错误
我该如何添加? – sam
右键单击项目(不是解决方案)并选择属性。 导航到配置属性 - > C/C++ - >常规。 在窗口的右侧找到'Additional Include Directories'的条目。 当你有时间也要熟悉LHS“C/C++”和“Linker”配置部分。你会使用这两个相当多的;) – Monza