Visual C++ Compiler for Macs

I am taking a "Digital Computations" class right now, but it really should be labeled "C++ for Beginners." We're learning C++ and using Visual C++ to compile our programs - all on PCs.

I, however, own a Mac, and it is very annoying to have to go into lab every time I want to work on C++ homework. I've searched and searched and searched, but I can't seem to find any Visual C++ compilers that will run on a Mac OS. Does any such thing exist?

Obviously, I'd like it to be as close to the PC program as possible - I am being graded on it, after all. And since it's only a semester long course, I really need it to be free, too.

Can anyone help?

Thank you very much!

Powerbook G4 Mac OS X (10.3.9)

Posted on Apr 15, 2007 1:43 PM

Reply
7 replies

Apr 15, 2007 6:09 PM in response to Der-Nalia__

Thanks for the help, but it wasn't quite what I was looking for. We're using very specific commands in my class, and I tried running a basic program using the "C++ Tools" part of the Xcode program and it didn't even recognize a simple "cin" statement.

Of course, I could be going about it all wrong. But I really need it to be almost exactly like what I have in class - which I don't think I'm going to get for a Mac.

Unless anyone can prove me wrong . . .?

Powerbook G4 Mac OS X (10.3.9)

Apr 15, 2007 7:20 PM in response to LilRicki

In your case you'll need to be using Virtual PC + Windows of some flavor. Of course, that costs money and performance would be terrible.

Not all C++ code is cross-platform and compilers are obviously written by different development groups (Visual C++ by Microsoft, Intel writes their own, and gcc is the open source compiler used on OS X) obviously do not use the same commands or syntax. With C++, you really need to target your code to the platform (either POSIX or Win32, etc.).

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Visual C++ Compiler for Macs

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.