Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

thrill4rishabh

macrumors newbie
Original poster
Jul 17, 2012
26
0
Hey,

I learnt C++ on Borland C++. Now I have shifted to mac and am using Eclipse, which is good, but not quite the same.

I read somewhere that we can write a program in TextEdit and compile and link it via terminal?

Can anyone tell me how to do that? Please go step by step and very detailed.

Thanks
 

stchman

macrumors 6502a
Jul 16, 2012
671
2
St. Louis, MO
In order to get gcc and g++ to work from the command line you need to:

Download and install XCode (free from the app store)
Install the command line tools in XCode preferences.

As far as your IDE choice, Eclipse is good, but I prefer Netbeans.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.