C++ compliers for Mac

I am taking a C++ course this fall for my degree in electrical engineering at Seattle Pacific University this fall and my instructor sent out to us student that in using the C++ Compiler (for us die-hard Mac users) "the best solution would be to configure your Mac so that either PC or MAC-compatible programs can be run, then use the same SW as everyone else. While there are C++ compilers available for MAC, the department does not have personal experience with these, so you would be on your own for any compiler-specific issues that may arise when using them." I would really rather buy a Mac (and have it for a few more years than a PC) but I am not literate when it comes to solving any compiler specific problems. My question to you is, will I have complete support (like when using the Personal Training team), to help me with C++ compilers?

macbook, Mac OS X (10.5.7)

Posted on Jul 17, 2009 12:27 AM

Reply
3 replies

Jul 17, 2009 1:32 AM in response to colette56

Hi Colette, and welcome to the Dev Forum!

The C++ compiler that comes with Mac development tools is gcc 4.0.1 or higher, which is the most popular compiler for Unix and Linux. gcc is also available for Windows, however most Windows developers will be using Microsoft tools. In particular they'll be using Visual Studio as the Integrated Dev Environment (IDE).

The IDE for the Mac is called Xcode, and it's quite different. If your class is using an IDE, it will probably be more important to have the same IDE as everyone else than to have the same compiler. The IDE includes the text editor you'd use for all your coding as well as numerous other tools. You won't want to be using Xcode if the instructor is constantly referring to particular features of Visual Studio.

On the other hand, many programming classes don't involve any IDE, since that interface really has nothing to do with the actual programming. In fact many University classes will be using a text-based interface to Linux. In that case the compiler will probably be gcc, and your Mac environment will be almost identical to the school's environment.
then use the same SW as everyone else.

Do you know what that SW will be? That's the key question. Also find out if you'll be expected to install the compiler, etc. on your computer or whether you'll just be using your computer to login to the school's network to use tools running on the school's computers.

I think the worst case would be if the class is using Visual Studio, and the best case would be if the class is using a text interface to gcc running on Unix or Linux. Most non-Mac users have no idea that the Mac Terminal application provides almost exactly the same interface as a Unix terminal.
will I have complete support (like when using the Personal Training team), to help me with C++ compilers?

If the class is really about programming and not about pointing and clicking in an IDE, C++ is going to be the same regardless of the compiler. If your tools are different, the level of support you'll get will depend on the experience of the staff. If any of them are real programmers they won't even notice that your warnings and error reports look a little different from the other students.

If you can find out what the computing environment will be, someone here will be able to give you good advice, ok?

\- Ray

Jul 17, 2009 7:35 AM in response to colette56

If this were a computer science program, my answer would be different. But since this is electrical engineering, the compiler really isn't your focus, nor is the C++ language itself. Chances are, you will be using either MATLAB or other libraries a great deal and they may not always have Mac versions available.

You can definitely buy a Mac and use it. Using something like Parallels, VMWare, or VirtualBox, you can run Windows on your Mac right alongside the Mac program. Then, you can use all the software that everyone else in the program uses. It is very important to always test your code in the environment in which it will be evaluated. Plus, the school may give you free Windows software for the class that either doesn't exist on the Mac or you would have to purchase yourself.

I strongly encourage you to use your Mac whenever possible. You will have abilities that none of the Windows-only students will have. In some courses, you will be able to use your Mac software, in others, you may have to use only Windows.

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.

C++ compliers for Mac

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