Thread: Mac Compiler

  1. #1
    Registered User
    Join Date
    Mar 2008
    Posts
    65

    Mac Compiler

    I give up, I've been looking forever, but can't find one that works. If anyone knows where to find a Mac compiler for c, it would be much appreciated.

    Thanks
    Matt

  2. #2
    Registered User
    Join Date
    Nov 2004
    Location
    USA
    Posts
    516
    Last edited by PING; 03-21-2008 at 06:26 AM. Reason: Link
    Code:
    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

  3. #3
    Registered User
    Join Date
    Mar 2008
    Posts
    65
    Those didn't help, is there like a Dev c++ for Mac os x?

  4. #4
    Registered User
    Join Date
    Nov 2004
    Location
    USA
    Posts
    516
    What you want is an IDE not a compiler.. Try Code::Blocks
    Code:
    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

  5. #5
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    You might also want to try Xcode as it is provided by Apple.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  6. #6
    Registered User
    Join Date
    Mar 2008
    Posts
    65
    Quote Originally Posted by PING View Post
    What you want is an IDE not a compiler.. Try Code::Blocks
    What is an IDE, and if I don't use a compiler, how do I, well, compile them?

  7. #7
    Crazy Fool Perspective's Avatar
    Join Date
    Jan 2003
    Location
    Canada
    Posts
    2,640
    An IDE includes a compiler as well as an environment for coding.

    XCode is a great IDE for mac and is free.

  8. #8
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    I use Xcode on my Mac. It comes on the install disk, but is not installed by default. Insert the install disk (disk 2 I think) and install it. XCode is an IDE (integrated development environment). It comes with the gcc compiler. Works great.

    Todd
    Mainframe assembler programmer by trade. C coder when I can.

  9. #9
    Registered User
    Join Date
    Mar 2008
    Posts
    65
    If I ever had that disk, I don't anymore. Can I download it?

  10. #10
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Yes. Here's the link for Leopard. http://www.apple.com/macosx/developertools/xcode.html

    If you are running Tiger, figure it out.

    Todd
    Mainframe assembler programmer by trade. C coder when I can.

  11. #11
    Registered User
    Join Date
    Nov 2004
    Location
    USA
    Posts
    516
    What is an IDE, and if I don't use a compiler, how do I, well, compile them?
    As perspective pointed out, an IDE includes a compiler as well.. You can also configure some IDEs to work with different compilers. For example NetBeans can work with whatever version of javac you have. With a compiler i can write code in my favorite text editor and compile and run it from the command prompt.
    Code:
    >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++.

  12. #12
    Jack of many languages Dino's Avatar
    Join Date
    Nov 2007
    Location
    Chappell Hill, Texas
    Posts
    2,332
    Here's the Xcode 2.5 link.

    http://developer.apple.com/tools/download/
    Mainframe assembler programmer by trade. C coder when I can.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 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
  2. how to call a compiler?
    By castlelight in forum C Programming
    Replies: 3
    Last Post: 11-22-2005, 11:28 AM
  3. Help With finding a compiler
    By macman in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 04-15-2005, 08:15 AM
  4. compiler differences
    By white in forum C Programming
    Replies: 1
    Last Post: 02-18-2005, 02:58 PM
  5. Mac Compiler
    By MuRDoC in forum C Programming
    Replies: 3
    Last Post: 08-24-2001, 04:25 PM