C code and Macs

Discussion in 'Mac Programming' started by htpw16, Jul 4, 2011.

  1. macrumors member

    Joined:
    Jun 16, 2010
    #1
    Hello all,

    I will be purchasing a Mac to replace a Linux box and was wondering if compiling and running C code is as simple as opening up a terminal and compiling and running the output similar to Linux? Is there anything that I need to be aware of in terms of compatibility or restrictions?

    Particularly I do research with the OLSR routing protocol (OLSRd daemon) and use it quite frequently:

    http://www.olsr.org/?q=download

    If anyone is willing to test this out it would be much appreciated.

    Thanks!
     
  2. macrumors 68000

    VPrime

    Joined:
    Dec 19, 2008
    Location:
    London Ontario
    #2
    Just as easy.
    First you need to install Xcode (xcode 3 included on OSX install disc, Xcode 4 is 4.99 from the mac app store) and that will install the GCC compiler and all the other terminal tools you are probably already accustomed with. that you can launch from the terminal.
     
  3. thread starter macrumors member

    Joined:
    Jun 16, 2010
    #3
    Noted. Thank you good sir.
     

Share This Page