简体   繁体   中英

How to configure gVIM with Mingw32?

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.exe

Once you have it working, put the set command in .vimrc

Edit: Is there a file named Makefile in the current directory? If not, create Makefile in the current directory and have it call your makefile.

For example, if you build your software with mingw32-make project.mak create Makefile with contents something like this:

all:
    mingw32-make project.mak

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM