Thread: mac compiler

  1. #1
    Registered User
    Join Date
    Sep 2020
    Posts
    2

    mac compiler

    I am new to C++ and need to get a compiler compatible with a Mac OS Catalina (version 10.15.5). The Xcode 12.2 beta is too large a file for my computer (or so says the error message). Is there a stripped down version i can use? The book I'm using, Introduction to C by Alex Allain on the Cprogramming site says there is a developer's version that takes up less memory. But I can't find it on the download site. Help!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    38,294
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,082
    I use clang's C++ compiler on macOS Catalina at the command line, although out of habit I invoke it as g++. I did not install Xcode, and in fact I use VS Code to edit C++ code.
    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

  4. #4
    Registered User
    Join Date
    Sep 2020
    Posts
    2

    thanks

    Quote Originally Posted by laserlight View Post
    I use clang's C++ compiler on macOS Catalina at the command line, although out of habit I invoke it as g++. I did not install Xcode, and in fact I use VS Code to edit C++ code.
    I'll try that. Thanks

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 04-23-2012, 07:54 AM
  2. Replies: 7
    Last Post: 12-13-2010, 10:02 PM
  3. Replies: 4
    Last Post: 09-12-2009, 01:10 PM
  4. Replies: 2
    Last Post: 02-04-2008, 02:34 AM
  5. hp iPAQ 6300 && C compiler || C# compiler
    By xddxogm3 in forum Tech Board
    Replies: 2
    Last Post: 12-07-2004, 07:28 AM

Tags for this Thread