I need to use a makefile for a C++ course Im taking Ive written it but it is throwing a The system cannot find the file specified error but the file it says it cant find is in the directory with the makefile
g++ -c deck.cpp
process_begin: CreateProcess<NULL, g++ -c deck.cpp, ...> failed
make <e=2>: The system cannot find the file specified.
makeL *** [deck.o] Error 2
sadly The tutorials I have found thus far online regarding makefiles are designed for much more complex programs for this and leave me quite confused. Ive read over the code many times looking for errors or anything the only thing I notice is that in the error code there is a comma after deck.cpp but not in my file. Any help would be appreciated.
well modoran g++ is in the Path for my OS (windows 7 64-bit). as for those sites I create the files they want compiled then copy their code for the makefile and I still get the error system can not find the file specified.
The make program is broken on Windows -- you need to be sure to install MinGW/MSYS properly such that the properly-patched make is used. By default it is named something weird, like "mingw32-make.exe". When you set up your shell, make a macro for "make" that invokes the correct MinGW make.