[英]How to configure gVIM with Mingw32?
I am trying to compile a c++ file. 我正在尝试编译C ++文件。
How do you configure gVIM to make/compile files using mingw32-make.exe
如何使用
mingw32-make.exe
配置gVIM以制作/编译文件
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
我收到一个
shell returned 2
错误, No targets specified and no makefile found
另一件事,我注意到的是它正在将C:\\..\\LOCALS~1\\TEMP\\something.tmp 2>&1
文件夹传递给mingw32-make.exe
On the vim command line: 在vim命令行上:
:set makeprg=c:/path/to/mingw32-make.exe
Once you have it working, put the set command in .vimrc 一旦工作,将set命令放入.vimrc
Edit: Is there a file named Makefile
in the current directory? 编辑:当前目录中是否有一个名为
Makefile
的文件? If not, create Makefile
in the current directory and have it call your makefile. 如果没有,请在当前目录中创建
Makefile
并调用它。
For example, if you build your software with mingw32-make project.mak
create Makefile
with contents something like this: 例如,如果使用
mingw32-make project.mak
构建软件,则创建包含以下内容的Makefile
:
all:
mingw32-make project.mak
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.