Thread: Compiling a program for Mac OSX from a windows computer

  1. #1
    Registered User
    Join Date
    Feb 2009
    Posts
    7

    Question Compiling a program for Mac OSX from a windows computer

    I'm not sure what forum this question should go under, but hopefully I'm not throwing the forum into eternal chaos to post this here, so:

    How can I compile a program that can run on the Mac OSX operating system without using Mac's sdk?
    I want to compile a program using standard headers like <iostream.h> etc, but I need to compile it from my Windows machine.
    Is that possible?

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    Sure, so long as it only uses standard headers, it should compile on any machine with a standard compiler.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Compiling Linux kernel on Windows
    By jmd15 in forum Linux Programming
    Replies: 9
    Last Post: 04-10-2006, 07:28 AM
  2. Program works on Windows XP and 2000, not on 98 or ME
    By MidnightlyCoder in forum C++ Programming
    Replies: 7
    Last Post: 03-10-2006, 03:36 PM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. Replies: 6
    Last Post: 01-07-2002, 02:46 AM
  5. Problem with Borland 5.5 Compiling Windows Programs
    By Unregistered in forum C++ Programming
    Replies: 3
    Last Post: 08-28-2001, 09:04 AM