Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Newbie Question

Status
Not open for further replies.

megalith

Programmer
Joined
Jun 18, 2003
Messages
3
Location
US
Hey all,

I have started learning C++ and was wondering how you would compile a program written in Visual C++ or other program to run on a Macintosh. Basically, what would I need to prepare for to have a program that runs on windows and mac. I work with windows, but the industry I have gotten into uses mostly Macs.

I did try to search for this answer, but no luck.
Thanks in advance
Bart
 
Stick with the C/C++ Standard library and all code should compile fine on any operating system (assuming you have a Standard-compliant compiler).

The farther you move from the Standard, the less likey you are to be supported. Many common libraries go to great lengths to remian compatible on any development platform, but others don't.

I'm sure there are GUI libraries designed to work on both Windows and Mac, but you'd have to do some digging to find those (unless someone here knows).

Getting a full-blown C/C++ application to work on both Windows and Mac might be more trouble than it's worth. If cross-platform compatibility is a big thing, you might want to look into Java, which was designed have the same source code (and compiled byte-code, even) work on any platform.
 
chipperMDW ,

thanks for the repies, I have a lot to think about but you two have helped me a lot. I come from a coldfusion background and I know that writing programs is a big step. I just want to make the right decision before I get to deep into this. Thanks again,

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top