简体   繁体   中英

Updating gcc on osx 10.8

I'm C++ programming and I've been working with llvm-gcc42 up till now. I want to switch to gcc46 or later. Are there any particular headers I need to include to make this transition smooth?

Thanks for your help!

PS Sorry about repeated posts on this topic. I think this is the simplest and most general formulation I could come up with. For detailed error messages I've been getting, please see Error with new gcc48 on macos

You might consider using clang with OS X. Otherwise you can install gcc-4.8.1 with Homebrew or MacPorts . Don't try updating or replacing the 'system' compilers (bundled with Xcode) manually. You can search previous questions on the details for using these port systems.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM