Thread: C++ and Macs

  1. #1
    Anal comment spacer DominicTrix's Avatar
    Join Date
    Apr 2002
    Posts
    120

    C++ and Macs

    Hi there, Im working on a project at the moment that, if possible, I want to make available for mac, linux and PC. So far I have just been coding the 'back-end' and have used no platform specific code.

    What I was wondering is:

    1. Will I need a mac to compile my code for macs?
    2. How easily is this done? / Has anyone experience in this?
    3. Can anyone suggest a good GUI api/library/toolkit that will work cross-platform?


    Many thanks in advance

    DT
    "The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns

  2. #2
    Toaster Zach L.'s Avatar
    Join Date
    Aug 2001
    Posts
    2,686
    I assume you are talking about OS X, specifically (for older versions, I know nothing).

    Anyway,
    1. Not necessarily. It is possible to build for another target platform (how exactly is compiler specific). However, it is always a good idea to test it on a Mac to ensure all works as advertised. (If you have GCC, check the manual... for the specific options you need to set.)
    2. It's really going to depend on how much code you have that relies on things specific to the platform or the compiler. I only have experience converting old Linux code to Windows (i.e. code written in part before the C++98 standard), and it was a bit of a pain, but manageable because the code was designed to hide as much as possible of platform specific code.
    3. I have very little GUI experience with Macs, but gtk, fltk, WxWidgets, Qt, etc. claim to support OS X.
    The word rap as it applies to music is the result of a peculiar phonological rule which has stripped the word of its initial voiceless velar stop.

  3. #3
    Anal comment spacer DominicTrix's Avatar
    Join Date
    Apr 2002
    Posts
    120
    Thank you Zach, will have a look at the GCC documentation and will look at those GUI thangs.
    "The most important thing about acting is honesty. If you can fake that you've got it made" - George Burns

  4. #4
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    The Apple website provides a lot of information for developers. You may want to have a look at Cocoa.

Popular pages Recent additions subscribe to a feed