Makefile; gcc not working? Believe Mavericks is re

2019-07-24 18:14发布

问题:

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.