The default compiler of Xcode 4.x is llvm, and libC ++ is used by default. You can change the settings in Xcode
To change stdlib as libc ++
a. Select a target from Xcode and go to the BuildSettings tab.
b. Go to Apple LLVM Compiler 4.2 - Language Option
Change the parameter as libstd from libC ++
To change the compiler
a. Select a target from Xcode and go to the BuildSettings tab.
b. Go down Build Options
Change the C / C ++ / Objective-C parameter - the default will be "Apple LLVM Compiler 4.2". Change it to g ++ 4.2
source share