C++ on Mac?

Oct 24, 2009 at 11:06pm
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!
Oct 24, 2009 at 11:22pm
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 Oct 24, 2009 at 11:23pm
Oct 24, 2009 at 11:24pm
Cheers mate!

So would i be able to write just like an average console app, and open it in the terminal?
Oct 24, 2009 at 11:33pm
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 Oct 24, 2009 at 11:33pm
Oct 24, 2009 at 11:39pm
Thank you kind sirs. And thanks for the link Grey Wolf!

SOLVED!
Oct 25, 2009 at 1:07am
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.
Oct 25, 2009 at 1:32am
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.
Oct 25, 2009 at 1:36am
Thanks a ton, mate.
Topic archived. No new replies allowed.