我在bash下指令
gcc hello.c -I./myinclude 是可以成功compile出a.out的
但是改在Makefile如下,打make,就會出現找不到.h檔 No Such File 的問題
main: hello.o
gcc -Wall -o $@ $^ -I./myinclude
該如何改?
--
gcc hello.c -I./myinclude 是可以成功compile出a.out的
但是改在Makefile如下,打make,就會出現找不到.h檔 No Such File 的問題
main: hello.o
gcc -Wall -o $@ $^ -I./myinclude
該如何改?
--
All Comments