I am trying to use OpenMP in a objective-c++ program.
Unfortunately llvm-gcc 4.2 seems to have serious bug when working with OpenMP. According to my researches, the best solution should be using gcc 4.8 instead.
I already downloaded a prebuilt version of gcc 4.8. My question is: how can I integrate the new compiler with Xcode, so that I can select it directly in Build Settings from Xcode?
Alternatively, is there an easy way I can compile my project with gcc4.8? I have different files and a .xib, I really do not want to compile all of them by hand.
I'm using MacOS 10.8.3 and Xcode 4.5.1 (though I think the procedure should be the same for all Xcode 4.x).
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…