Windows上的Makefile错误 [英] Makefile error on windows

查看:109
本文介绍了Windows上的Makefile错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在Windows7上运行makefile.我在Windows路径变量中添加了make.exe和 我正在尝试运行"make -f makefile.txt",但显示错误

I am trying to run makefile on windows7. I have added make.exe in windows path variable and I am trying to run "make -f makefile.txt" but it shows error

"cc -o edit main.o kbd.o command.o display.o insert.o search.o files.o utils.o
process_begin: CreateProcess(NULL, cc -o edit main.o kbd.o command.o display.o i
nsert.o search.o files.o utils.o, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [edit] Error"

请耐心等待,因为我是刚接触概念的人.

Please help me as i am new to make concept.

推荐答案

仅在路径中添加make.exe是不够的.您的问题是,尝试将目标设为edit时找不到cc.尝试从MinGW/MSYS或CygWin Shell运行相同的命令,具体取决于您的安装方式.这样很可能会为您提供一个适当的环境,以便对此生成文件使用make.

It is not sufficient to just add make.exe to the path. Your problem is that cc can not be found while trying to make the target called edit. Try running the same command from an MinGW/MSYS or CygWin shell, depending on how you installed this. That will most likely give you the proper environment to use make with this makefile.

此问题类似于在运行时使用makefile复制文件

这篇关于Windows上的Makefile错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆