Results 1 to 7 of 7

Thread: C Compiler

  1. #1

    girgroupie47's Avatar
    Member Since
    Apr 12, 2007
    Location
    Maryland
    Posts
    10
    Specs:
    Black MacBook - 2.00GHz C2D - 2GB RAM - 120GB hard drive - Superdrive 6x
    C Compiler
    I don't know if this is where I should post this or not but anyway... My lovely new black MacBook is supposed to be here on friday! The problem is that I'm a computer science major and am currently taking a C programming class. We are using microsoft visual C++ compiler, and I'm not quite sure how I'm going to use my mac for such things. I really don't want windows on my mac at all. But I guess if worse comes to worse, I'll use Parallels. does anyone have any suggestions? I just need a basic C or C++ compiler that is cross platform compatible I guess (if there is such a thing) I really have no idea. HELP!

  2. #2


    Member Since
    Apr 12, 2007
    Posts
    1
    If you just need a xplatform C++ compiler no problem. Xcode - comes with your Mac is based on GCC. Note GCC will not build under MS Visual C++.

    Here a very old link that may help you out.

    http://forums.macrumors.com/showthread.php?t=180022

  3. #3

    mac57's Avatar
    Member Since
    Apr 29, 2006
    Location
    St. Somewhere
    Posts
    4,560
    Specs:
    iMac 27" 3.4 GHz, 256 GB SSD, 2 TB HDD, 8 GB RAM
    Hi girgroupie47, Welcome to Mac Forums!!

    You can install GNU C++ (gcc) on your machine. It is available on your Mac OS X install DVD, in the Optional Installs area. I have done this and it works well.
    My Macs: iMac 27" 3.4 GHz, Mac Pro 3.2 GHz, PowerMac G5 Quad 2.5 GHz, G4 Cube with 1.2 GHz Upgrade
    My iStuff: 64GB iPhone 5, 64GB iPad4, 30GB iPod Video, 16GB iPod Touch
    My OS': Mac OS X Lion, Mac OS X Snow Leopard, Mac OS X Tiger, Mac OS 9.2.2, openSUSE 10.3
    I was on the Mac-Forums honor roll for September 2007

  4. #4

    gilesjuk's Avatar
    Member Since
    Apr 03, 2007
    Posts
    301
    Specs:
    Black MacBook 2GB, Mac Pro 2.66Ghz 3GB X1900.
    If your classes teach you ANSI C and use the standard C libraries like stlib then you will be fine.

    You typically type "cc sourcefile.c"

    Where you will struggle is if your course requires you do use Windows APIs or any visual development. You will have to do similar things on the Mac using XCode and hope the university are symapthetic.

  5. #5

    fleurya's Avatar
    Member Since
    Nov 18, 2006
    Location
    Anytown, USA
    Posts
    4,935
    Specs:
    27" iMac 2.7GHz Core i5, iPhone 6, iPad Air 2, 4th gen Apple TV
    There's a program from a company called codeweavers that allows you to install and run windows apps on you Mac natively. I think I saw Visual Studio on their list of compatible apps. It's probably a good option and cheaper/easier to use than Parallels.

    http://www.codeweavers.com/products/cxmac/

  6. #6

    girgroupie47's Avatar
    Member Since
    Apr 12, 2007
    Location
    Maryland
    Posts
    10
    Specs:
    Black MacBook - 2.00GHz C2D - 2GB RAM - 120GB hard drive - Superdrive 6x
    thanks everyone
    We do use stuff from the standard libraries (conio.h, stdio.h) but we aren't doing any kind of GUIs or anything like that. So if I'm understanding correctly, it sounds like GCC will work great. (thank god! I really don't want windows on my nice new mac) It's supposed to come tomorrow, I have been glued to FedEx's website, tracking it since Saturday (is that weird?) Anyway thanks everyone!

  7. #7


    Member Since
    Sep 19, 2009
    Location
    UK - Newcastle
    Posts
    13
    Specs:
    Mac Pro 2.26GHz 8-Core
    Nope, I have been checking my tracking every minute lol. Still got 2 days!!
    Good luck with the C++, sooo glad I done it 6 years ago and never have to go back.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. g++ compiler
    By trooper83 in forum OS X - Development and Darwin
    Replies: 3
    Last Post: 05-18-2009, 12:38 PM
  2. C++ Compiler
    By nyzwerewolf in forum OS X - Development and Darwin
    Replies: 4
    Last Post: 09-25-2008, 11:43 PM
  3. C\C++ Compiler
    By belitos in forum OS X - Operating System
    Replies: 6
    Last Post: 05-05-2008, 01:50 PM
  4. Compiler ...
    By A.I. BOT in forum OS X - Development and Darwin
    Replies: 2
    Last Post: 09-19-2005, 12:00 PM
  5. De-Compiler
    By Big Beard in forum OS X - Development and Darwin
    Replies: 1
    Last Post: 02-18-2004, 02:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •