therefore, I have been programming in C ++ for almost 2 years, and all this time, when I enjoyed using IDE (VS) with excellent project settings and automatic binding, etc. I always stayed outside of any external libraries that required me to compile via make files, or at least those intended for Linux / other compilers.
In any case, now I want to use a super-useful utility ( Bob Jenkins Perfect Minimal Hash) , but this requires me to compile through make files, not just that, but using the g ++ compiler.
I went ahead and got the mingW32-make utility, and now I'm trying to get it to work. Where am I now:
- Successfully installed minGW
- Successfully called make utility
- Failed to complete the project.
The error I am getting is:
C: \ gen_progs \ ph> mingw32 - do
mingw32-make: *** There is no rule to do target lookupa.c', needed by lookupa.o'. Stop.
And makefile itself:
CFLAGS = -O .cc.o: gcc $(CFLAGS) -c $< O = lookupa.o recycle.o perfhex.o perfect.o const64 : $(O) gcc -o perfect $(O) -lm
Now the error seems reasonable, at least from my minimal understanding of make files, I have all the files with the .c, .h binding, however I don't have a single .o file, and there seem to be no instructions on how to do this . So my questions are:
Am I calling make utility incorrectly? Or do I need to compile object files first? Or ... do I need to add something to the make file?
Again I have all the .c and .h links.
Edit: Sorry that I was actually missing from this particular file, which seems to have disappeared somewhere along the line. However, adding it back is the error I am now getting:
c:\gen_progs\ph>mingw32-make cc -O -c -o lookupa.o lookupa.c process_begin: CreateProcess(NULL, cc -O -c -o lookupa.o lookupa.c, ...) failed. make (e=2): The system cannot find the file specified. mingw32-make: *** [lookupa.o] Error 2