Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

er2020

macrumors newbie
Original poster
Aug 14, 2010
18
0
This compiler is non-commercial (free). I need it to verify the portability of my C++ programs.

Is there the slightest change it might work on OS X 10.6? Alternatively, is there a package that ports it to OS X 10.6?

Thanks.
 
This compiler is non-commercial (free). I need it to verify the portability of my C++ programs.

Is there the slightest change it might work on OS X 10.6? Alternatively, is there a package that ports it to OS X 10.6?

Thanks.
It is my understanding that C++ is the most portable language ever developed. Every Mac ships with gcc which includes a C++ compiler. gcc is the compiler suite for Linux. You may access it via Xcode or the Terminal command line. If the Developer Tools are installed already, then you are all set. If the Developer Tools are not installed already, then they must be installed from the System Restore disc that shipped with your Mac. They may also be downloaded from the Apple Developer Connection website. In case the point is not clear, C++ is available on your Mac free of charge.

However, you can expect only "textbook" C++ programs to work cross-platform. If your C++ application accesses OS-specific APIs or frameworks, then they will work only on that specific OS. If you want GUI-based applications to work cross-platform, then you must use compile your applications to a cross-platform frameworks.
 
Thank you all. I'm already familiar with the XCode IDE and its built-in compilers.

Like I said I'm only interested in Intel to verify portability of some open source software I have developed.

However, only the Linux version of Intel C++ is free. I'm hoping, since OS X is a variant of unix, that perhaps someone found a way to make the Linux-compatible compiler work on OS X.

Otherwise, I'll continue using a virtual machine (virtual box).
 
However, you can expect only "textbook" C++ programs to work cross-platform. If your C++ application accesses OS-specific APIs or frameworks, then they will work only on that specific OS. If you want GUI-based applications to work cross-platform, then you must use compile your applications to a cross-platform frameworks.

Good point, thanks. Actually, no, these are only "console" applications.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.