Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试编译一个 c++ 文件。
你如何配置 gVIM 来制作/编译文件mingw32-make.exe
mingw32-make.exe
我收到一个shell returned 2错误,No targets specified and no makefile found 我注意到的另一件事是它正在将一个C:\..\LOCALS~1\TEMP\something.tmp 2>&1文件夹传递给mingw32-make.exe
shell returned 2
No targets specified and no makefile found
C:\..\LOCALS~1\TEMP\something.tmp 2>&1
在 vim 命令行上:
:set makeprg=c:/path/to/mingw32-make.exe
一旦你让它工作,把 set 命令放在 .vimrc
Makefile编辑:当前目录中是否有一个文件?如果没有,Makefile请在当前目录中创建并让它调用您的 makefile。
Makefile
例如,如果您使用mingw32-make project.makcreate构建软件,Makefile其内容如下:
mingw32-make project.mak
all: mingw32-make project.mak