我建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