Makefile; gcc not working? Believe Mavericks is responsible

≯℡__Kan透↙ 提交于 2019-12-11 05:46:22

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/19748656/makefile-gcc-not-working-believe-mavericks-is-responsible

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!