2012-08-11 230 views
1

我试图编译一个.cpp文件在雪豹Leapord 10.6.8中的Xcode 3.2.6。xcode gcc编译器显示参数列表太长

我m到处

i686-apple-darwin10-gcc-4.2.1: error trying to exec '/Developer/usr/bin/../libexec/gcc/i686-apple-darwin10/4.2.1/cc1plus': execv: Argument list too long 
Command /Developer/usr/bin/gcc-4.2 failed with exit code 1 

同时使用gcc编译4.2,甚至试图用gcc 4.0

有人可以提供关于如何解决这个任何指针编制?

在此先感谢。

回答

1

我没有使用Mac,但在Ubuntu上有同样的错误。我将过多的参数传递给gcc输入。尝试检查你的gcc参数。