Makefile and gcc error -
in makefile, i'm getting following error when running 'make tests': make: * no rule make target genrangetreetester', needed by
tests'. stop.
tests: genrangetreetester libgenrangetree.a gcc -wall -l. -lgenrangetree teacher.o manager.o -o genrangetreetester ./genrangetreetester .phony: tests
but genrangetreetester , libgenrangetree.a aren't exist why doesn't run gcc call ?
thanks.
the line tests: genrangetreetester libgenrangetree.a
means target tests
depends on genrangetreetester
. file must present name commands below executed.
change makefile this:
tests: genrangetreetester ./genrangetreetester genrangetreetester: libgenrangetree.a gcc -wall -l. -lgenrangetree teacher.o manager.o -o genrangetreetester
Comments
Post a Comment