Makefile文件; gcc不工作?相信小牛队是负责任的 [英] Makefile; gcc not working? Believe Mavericks is responsible

查看:183
本文介绍了Makefile文件; gcc不工作?相信小牛队是负责任的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



铿锵:错误:无法指定-o生成生成文件时发生以下错误多个输出文件



升级到Mac OSX Mavericks(Xcode 5.0.1)时发生此问题。我花了好几天的时间试图在论坛上发现这个问题,而且我很迷茫。删除以前的XCode版本后,我重新安装了一个干净的(从Mac App Store)。当我运行以下命令:

sudo port install gcc49



它试图建立 libgcc-devel



任何帮助,因为我绝望,工作论文工作。 解决方案

问题/ 251597 /问题与没有答案,但问题解决在评论中>没有答案的问题,但问题解决了问题(或扩展在聊天))



当OP写道:


readPVCData:readPVCData.o readfunc.o readlib.h
gcc -o readPVCData readPVCData.o readfunc.o readlib.h -lm -lsndfile
readPVCData.o:readPVCData.c readlib.h
gcc -c readPVCData。 c
readfunc.o:readfunc.c readlib.h
gcc -c readfunc.c


@Kevin写道:


很确定你的公关oblem是中的 readlib.h > gcc -o readPVCData readPVCData.o readfunc.o readlib.h -lm -lsndfile 。拿出来。



I'm getting the following error when I try to execute my make file:

clang: error: cannot specify -o when generating multiple output files

The issue occurred when I upgraded to Mac OSX Mavericks (Xcode 5.0.1). I have spent days trying to figure this problem out on the forums, and I'm just very lost. After deleting a previous XCode version, I reinstalled a clean one (from the Mac App Store). When I ran the following:

sudo port install gcc49

It froze trying to build libgcc-devel.

Any help as I'm desperate, working on dissertation work.

解决方案

(Answered in the comments. See Question with no answers, but issue solved in the comments (or extended in chat) )

When the OP wrote:

readPVCData: readPVCData.o readfunc.o readlib.h gcc -o readPVCData readPVCData.o readfunc.o readlib.h -lm -lsndfile readPVCData.o: readPVCData.c readlib.h gcc -c readPVCData.c readfunc.o: readfunc.c readlib.h gcc -c readfunc.c

@Kevin wrote:

Pretty sure your problem is the readlib.h in gcc -o readPVCData readPVCData.o readfunc.o readlib.h -lm -lsndfile. Take it out.

这篇关于Makefile文件; gcc不工作?相信小牛队是负责任的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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