Installing Netbeans With C++ on MacOS

Intall the Java SDK
Install Netbeans with C++ support
  • Download and install a version of Netbeans that includes C++ support: Netbeans downloads
    • Go to
    • You need to download and install the version that includes C++ support.
    • Go to this Link and pick one of the two options below:
      1. Netbeans with C++ only (142 MB)
      2. Netbeans with C++ plus Java and more (263 MB) (Get this if you also what Java support)

Install xcode
  • Install xcode for Mac OS
    • Open Mac OS App Start
    • Search for and install "xcode developer tools"

Install the GNU C++ compiler
  • Install GNU compilers
    • Go to the High Performance Computing Site For Mac OS X, and download the latest gcc bininary ( gcc-7.1-bin.tar.gz): HPC Site
    • Start a terminal on your Mac
    • Change to the downloads directory: "cd ~/Downloads"
    • Uncompress: "gunzip gcc-7.1-bin.tar.gz"
    • Install the compilers: "sudo tar -xvf gcc-7.1-bin.tar -C /" You will need to enter your password.
    • Check that the C++ compiler is installed by typing "c++ -v"
    • You may need to run a command to activate xcode. If so you will get a message with a command to run. Run the command and agree to the license, and the try "c++ -v" again.
  • Try it out:
    1. Open Netbeans
    2. File/New Project
    3. Pick "C/C++" on left, "C/C++" Application on right, hit next
    4. Give name "hello"
    5. Select a project location(your H drive is best), hit finish
    6. Open source folder, main.cpp
    7. Paste in and run:

Hello world

#include <iostream>
using namespace std;
int main()
  cout << "Hello, world." << endl;

-- Jim Skon - 2016-08-09


Edit | Attach | Watch | Print version | History: r10 < r9 < r8 < r7 < r6 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r10 - 2018-04-17 - JimSkon
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback