C++ on Mac

This is a discussion on C++ on Mac within the C++ Programming forums, part of the General Programming Boards category; I have done some google searching, but I can't seem to find any definitive answers. I am going to be ...

  1. #1
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094

    C++ on Mac

    I have done some google searching, but I can't seem to find any definitive answers. I am going to be part of a team working on a portable application. I was wondering, since I am a windows programmer for the most part (I have done a little Linux), is there much differerce programming for portability? I am not refering to the additional API's and Librarys you can add, but base things like iostream, fstream, string, and those basic things.

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    847
    Quote Originally Posted by Wraithan
    I am not refering to the additional API's and Librarys you can add, but base things like iostream, fstream, string, and those basic things.
    These are part of the c++ standard and should work the same on any conforming implamentation. Furthermore mac is based on unix, coding for mac should be like coding on linux.
    Last edited by Quantum1024; 12-02-2005 at 11:25 PM.

  3. #3
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    Alrighty, thanks a lot Quantum1024.

  4. #4
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    Furthermore mac is based on unix, coding for mac should be like coding on linux.
    Mac OS X is based on UNIX. Mac OS 9 and earlier are not.

    But most people use OS X now.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  5. #5
    pwns nooblars
    Join Date
    Oct 2005
    Location
    Portland, Or
    Posts
    1,094
    btw, after some research and the research of others. I found that I didn't need to buy a mac, just the OS.

    http://pearpc.sourceforge.net/index.html

    http://www.pearpc.net/pearpc_net_package.php

    makes intel/amd processors run like power pc processors.

  6. #6
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,046
    If you just use "base things like iostream, fstream, string", then you can write it on one machine and it will probably compile everywhere (everywhere with a C++ compiler, that is).
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Mac OS X Users/C programmers?
    By petermichaux in forum C Programming
    Replies: 16
    Last Post: 04-18-2011, 06:36 AM
  2. How to Send Mac Address From Client to Server
    By Lieyza197 in forum C Programming
    Replies: 2
    Last Post: 05-27-2009, 09:58 AM
  3. Mac backup software
    By brewbuck in forum Tech Board
    Replies: 2
    Last Post: 08-12-2008, 08:21 PM
  4. Spoof MAC Address.
    By eXeCuTeR in forum C Programming
    Replies: 10
    Last Post: 02-07-2008, 04:35 PM
  5. Newbie Question - fflush(stdin) & fpurge(stdin) on Mac and PC
    By tvsinesperanto in forum C Programming
    Replies: 34
    Last Post: 03-11-2006, 11:13 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21