3
我曾經是能夠編譯C程序,但現在我不能:錯誤:沒有包括在路徑搜索stdio.h中
$ cat helloworld.c
#include <stdio.h>
int main(void)
{
printf("Hello, world!\n");
return 0;
}
$ gcc helloworld.c
helloworld.c:1:19: error: no include path in which to search for stdio.h
是的,我確實有/usr/include/stdio.h
。是的,安裝了build-essentials
。
在我修改我的~/.bashrc
以運行安裝在我的用戶目錄中的程序後,此問題開始。我知道這是什麼錯誤,因爲如果我刪除~/.bashrc
,它的工作原理。
什麼環境變量將shadowing /usr/include
作爲包含路徑?
粘貼「.bashrc」的內容會很有幫助。 – cdhowie 2010-11-21 07:12:57