So this is after having dropped $30 for Mac OS 10.7 and having downloaded XCode 4.3.2. After installing the command line tools, the installed version of gcc is still 4.2.4. I need 4.7. I ve installed it and set the g++
link in /usr/bin
to it. But when I try to compile any program via QtCreator, I get
未承认的指挥线选择
-Xarch_x86_64
I found this discussed in a 3-year-old bug report here, but I really couldn t follow all the different shell commands etc. and my attempt to install liblastfm failed with the same error. The comment here,
The problem is that the GCC/G++ that is normally used to compile stuff on Macs is actually just a wrapper.
And this wrapper has Mac-Only arguments like -Xarch_x86_64, which then get converted into the correct args.
象这样的种子可能会击中头部。 Aaargh! 当然,必须找到某种途径来解决这一问题?