C++ on Mac?

Hi guys!

I'm studying in computer science at uni, and have just brought the new macbook. Im curious as to weather you can develop c++ apps on osx?
Im getting a new desktop computer, and am considering an iMac, but i want that computer to be able to use c++.

So my questions are, can you write c++ on a mac? if so with what ide? is it as easy in windows, where you could get visual studio, write somthing and compile it?
and finally, is it the same as writing it on a windows machine?

Thanks in advance!
closed account (z05DSL3A)
can you write c++ on a mac?

Yes.

if so with what ide?

Xcode

is it as easy in windows, where you could get visual studio, write somthing and compile it?

erm, yes.

is it the same as writing it on a windows machine?

No, it's a Mac.

Have a look at:
http://developer.apple.com/
Last edited on
Cheers mate!

So would i be able to write just like an average console app, and open it in the terminal?
Console apps, as long as they're not dipping into any Windows-specific stuff (nothing in the standard library is Windows-specific) would run fine under a Mac.
Last edited on
Thank you kind sirs. And thanks for the link Grey Wolf!

SOLVED!
I got the new version of Xcode from the Snow Leopard DVD, because my hard drive crashed and I didn't feel like reinstalling from the internet when it was already there in the box.

However, when I run it there is no option to create a simple C++ tool, which is how I was used to making console apps.
How would I do them otherwise?

Thanks.
Yeah its simple, when you open Xcode, go to new project, application and then Command line tool and the box that says type, select C++.

Then when you compile just double click the little console icon above the cpp file.
Thanks a ton, mate.
Topic archived. No new replies allowed.