Originally Posted by aryayush
Could someone just explain to me in layman's terms what exactly I need to do to compile my CPP files, i.e. those created on Windows using Turbo C++, on Mac OS X? If it can be done using the Terminal, how exactly do I go about doing it?
First, tell us what you are doing. Is this a "learning beginning C++" exercise and you are basically using cout/cin and the << and >> operators to output and input the program's data? Of are you trying to take advantage of Turbo C++ specific features? C++ is the ultimate in being able to use extensible libraries, but those libraries may have platform-specific underbellies that are hidden -- abstracted, actually -- away from you. (Step into cout sometime with your debugger, lotsa hairy C code in there...)
If you were creating a command-line program to get some data, put it into some basic C++ objects (maybe even manipulating an array of pointers to inherited instantiations of those objects for polymorphism), fold/spindle/mutilate and output the results to demonstrate features, your C++ needs could probably be met with g++, etc.
Instead, if you are developing a professional looking GUI application, well that would be a beast of a different color.
So tell us what you are trying to do and we'll tell you how low-end you can go.
Edit: IMO, an integrated interactive debugger is worth its weight in gold. Its one thing to be able to look at the addresses stored in a pointer, its another to be able to automatically de-reference the value or object in that address to something understandable. In my earlier ramblings, if you had an array/linked list/whatever of pointers to a group of objects, its really nice to be able to set a breakpoint, and not only evaluate whether that pointer is valid or if it points to garbage. But to be able to de-reference the pointer to an object that, say, has a name property or a getName() method to see if its the object you thought it was...
You don't get that creating a make file and running some .cpp code into a compiler.