Hi everyone;
EDIT: Issue resolved, thanks Ken Fitlike
I have a program I downloaded from a net text book, and trying to build it all and run it to experiment and modify.
I read up on creating makefiles; and wrote this one for the program in question:
I have been getting the same error for hours now:Code:kalc.out: parse.o scan.o STORE.o SYMTAB.o Tree.o g++ -o kalc.out parse.o scan.o STORE.o SYMTAB.o Tree.o parse.o: parse.cpp parse.h scan.h store.h SYMTAB.h Tree.h g++ -c parse.cpp scan.o: scan.cpp scan.h symtab.h g++ -c scan.cpp STORE.o: STORE.CPP store.h symtab.h cmath.h iostream.h g++ -c STORE.CPP SYMTAB.o: SYMTAB.CPP symtab.g cassert.h cstring.h cmath.h iostream.h g++ -c SYMTAB.CPP Tree.o: Tree.cpp Tree.h STORE.H cmath.h iostream.h g++ -c Tree.cpp clean: rm *.o kalc.out
Something im overlooking?Code:$ make -f makefile.make make: *** No rule to make target `parse.cpp', needed by `parse.o'. Stop.
The original code im trying to build is from relisoft site
Program source code: http://www.relisoft.com/book/lang/pr...urce/calc2.zip
Ive alternatively tried loading it all up into K-Develop and using a proper development "environment", but that seems to be more problematic than just fixing my makefile. Besides, why click build on an application when you can start it from the terminal, so much more fullfilling![]()



LinkBack URL
About LinkBacks




main should return int etc..