Results 1 to 3 of 3
  1. #1

    Member Since
    Apr 13, 2008
    C++ compiler (terminal)
    hey im new to mac, just got it yesterday. but ive been learning c++ on windows and i used visual c++. so for my mac i downloaded xcode but it seemed really complex for my menial programs and i didnt like how you couldnt compile a file-only projects.

    so i downloaded textwrangler and i wrote a c++ program (copied from book) and i dont know how to compile it in terminal.

    on windows i use the code: cl/EHsc filename.cpp but obviously this is not windows

    so if anyone can tell me the coding to compile and execute a c++ program, please do so. thank you very much in advance

  2. #2

    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Tucson, AZ
    Way... way too many specs to list.
    in terminal I normally issue something like

    g++ -v -Wall program.cpp -o OutPutFileName

    a quick man g++ will give you all the options
    This machine kills fascists
    Got # ? phear the command line!

  3. #3

    Member Since
    Mar 03, 2008
    MacBook 2.2GHz 4GB RAM Black
    Hi, you can create a new project through command line utility->C++ Tool, then if you want monitor the output you can open Console in menu->run->Console. This solution is just for C++ programs using standard library only.

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 macOS - Development and Darwin
    Replies: 3
    Last Post: 05-18-2009, 11:38 AM
  2. C++ Compiler
    By nyzwerewolf in forum macOS - Development and Darwin
    Replies: 4
    Last Post: 09-25-2008, 10:43 PM
  3. Compiler ...
    By A.I. BOT in forum macOS - Development and Darwin
    Replies: 2
    Last Post: 09-19-2005, 11:00 AM
  4. Compiler ...
    By A.I. BOT in forum macOS - Operating System
    Replies: 0
    Last Post: 09-18-2005, 05:24 PM
  5. De-Compiler
    By Big Beard in forum macOS - Development and Darwin
    Replies: 1
    Last Post: 02-18-2004, 01: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