0
这是我的makefile:如何在Makefile中正确链接?
cpp2html: cpp2html.o lex.yy.o
gcc -c cpp2html.o lex.yy.o
cpp2html.o: cpp2html.c
gcc -c cpp2html.c
lex.yy.c: cppscanner.l
flex cppscanner.l
lex.yy.o: lex.yy.c
gcc -c lex.yy.c
当我尝试运行它,我得到这个错误:
gcc -c cpp2html.o lex.yy.o
gcc: warning: cpp2html.o: linker input file unused because linking not done
gcc: warning: lex.yy.o: linker input file unused because linking not done
我很熟悉Unix因此任何帮助是极大的赞赏