warrener
April 29th, 2008, 04:25 PM
I have main.cc and test.h files,
main.cc includes test.h
Here is the Makefile, but it doesn't work. any clue?
main : main.o
g++ -g main.o -o main
main.o : main.cc test.h
g++ -o main.o -c -g test.h main.cc
main.cc includes test.h
Here is the Makefile, but it doesn't work. any clue?
main : main.o
g++ -g main.o -o main
main.o : main.cc test.h
g++ -o main.o -c -g test.h main.cc