2014-03-24 96 views
1

我是Linux新手,誰能告訴我電腦在哪個目錄下搜索「ansinist.h」?以下是語法:Linux:沒有這樣的文件或目錄

[email protected] /cygdrive/f/Dataset_extract/500ppi-Legacy/SRC/BIN/TXT2NIST 
$ make -f makefile.mak 
gcc -ansi -O2 -I/include -L/lib -c txt2nist.c 
txt2nist.c:15:22: fatal error: ansinist.h: No such file or directory 
#include <ansinist.h> 
        ^
compilation terminated. 
makefile.mak:53: recipe for target 'txt2nist.o' failed 
make: *** [txt2nist.o] Error 1 
+0

來源從哪裏來?你確定你安裝了所有需要的開發包嗎? – vonbrand

回答

1

This answer可以幫助你。在一般情況下,請確保您已安裝要在項目中使用的庫。

0

要查找的文件ansinist.h 須藤查找/ -name ansinist.h 並請在此處粘貼你的輸出,但你應該確保你第一次安裝所有需要的庫..

0

1)如果你的頭文件在當前目錄中,然後使用#include「ansinist.h」 ,因爲此語法直接搜索到當前目錄。 2)如果您的頭文件位於/ usr/include /然後#include < ansinist.h> ,因爲此語法首先搜索到/ usr/include/then當前目錄。

3)你也可以使用#include < /path/ansinist.h> 其中path = path其中是頭文件。

4)如果上面的東西不起作用,那麼請給#echo $ PATH的價值,以便我可以幫助你。

相關問題