> Coding this way, I don't have makefile capabilities
MinGW comes with make.
So all you need to do is setup a makefile, and configure your editor to run "make" whenever you press the assigned function key (or whatever).
First, a small batch to setup the MinGW environment, and run make
Code:
cd "C:\Users\sc\Documents\Projects\forum"
call "C:\Program Files\CodeBlocks\MinGW\mingwvars.bat"
mingw32-make -f foomake.txt 1>make_1.log 2>make_2.log
pause
Put it in your project top-level and give it a name like maker.bat
Now create a makefile (change the -f filename above if you want)
Code:
CC=mingw32-gcc.exe
OBJECTS=foo.o
prog.exe: $(OBJECTS)
$(CC) -o $@ $^
To build in NP++, just press F5 and navigate to the batch file.
The output and errors will be in the respective log files.
If NP++ were a bit smarter, it would be able to parse error logs and take you to the respective file/line.