Makefile and gcc error -


in makefile, i'm getting following error when running 'make tests': make: * no rule make target genrangetreetester', needed bytests'. 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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -