I am trying to compile a c++ file.
How do you configure gVIM to make/compile files using mingw32-make.exe
I get a shell returned 2 error and No targets specified and no makefile found
another thing i have noticed is that it’s passing a C:\..\LOCALS~1\TEMP\something.tmp 2>&1 folder to mingw32-make.exe
On the vim command line:
:set makeprg=c:/path/to/mingw32-make.exeOnce you have it working, put the set command in .vimrc
Edit:
Is there a file named
Makefilein the current directory?If not, create
Makefilein the current directory and have it call your makefile.For example, if you build your software with
mingw32-make project.makcreateMakefilewith contents something like this: