What's the best way to program c++ on a Mac?
What is th开发者_StackOverflow中文版e best software ( open source ) for programming on c++ a Mac ?
any suggestions?
Xcode, same as C and ObjC.
You don't need anything special to program C++ on the Mac. The only real requirement is to install the developer tools from Apple. This provides the compiler tool-chain and development headers needed to write and compile standards compliant C++ on OS X which is really all you need.
Once you have done that it's a case of either using Xcode to manage your projects and compile your source, or outsourcing to an external build system and possibly an external editor.
A lot of people are happy just to use the default tools. Personally speaking I favour textmate as an editor and I use Waf as a build system so that I can compile my code on many platforms and am not tied into to OS X per-se.
Eclipse works reasonably well on Mac. The requirement that your IDE be open-source is a little odd. More important that it works well, right?
Textmate is the best option that I've tried so far. I, personally, found Xcode rather annoying to use, and Textmate was perfect for my use. The only potential issue is that you have to pay for it (after a 30 day trial). You can download it at: http://macromates.com/.
精彩评论