[英]C++ #include can't find file
我需要構建這個c ++項目。
失敗了
#include <wkhtmltox/image.h>
#include <wkhtmltox/pdf.h>
fatal error C1083: Cannot open include file: 'wkhtmltox/image.h': No such file or directory
fatal error C1083: Cannot open include file: 'wkhtmltox/pdf.h': No such file or directory
顯然它沒有找到文件。 我在磁盤上有文件,但是只需要在項目上以某種方式指向它即可。
我如何設置項目以便可以看到此文件?
如果還不清楚,我也是C ++的新手
編輯:我正在嘗試構建它: https : //github.com/antialize/wkhtmltopdf-bindings/tree/master/wkhtmltoxcom/
Visual Studio 2008年
轉到“工具->選項->項目和解決方案”,然后選擇“ VC ++目錄”,然后在右上角的組合框中選擇“包含文件”。 指定文件所在的目錄。 那應該解決問題。
或者,如果要針對每個項目自定義它,請按Alt F7或轉到“項目”->“屬性”->“ C ++”->“常規”,然后設置包含目錄。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.