gcc -I -L -l區別

咱們用gcc編譯程序時,可能會用到「-I」(大寫i),「-L」(大寫l),「-l」(小寫l)等參數,下面作個記錄: 例: gcc -o hello hello.c -I /home/hello/include -L /home/hello/lib -lworld 上面這句表示在編譯hello.c時: -I /home/hello/include表示將/home/hello/include目錄
相關文章
相關標籤/搜索