Tags: %TAGME{ tpaction="" web="Main" tag="" }% view all tags

Installing Netbeans With C++ on MacOS

  • If you do not already have the Java SDK on your computer you must install the Java SDK
  • Download and install a version of NetBeans that includes C++ support: Netbeans downloads
    • Go to https://netbeans.org/
    • 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 for Mac OS
    • Open Mac OS App Start
    • Search for and install Xcode 7

  • Install GNU compilers
    • Go to the High Performance Computing Site For Mac OS X, and download the latest gcc bininary (gcc-6.1-bin.tar.gz): HPC Site
    • Start a terminal on your Mac
    • Change to the downloads directory: "cd ~/Downloads"
    • Install the compilers: "sudo tar -xvf gcc-6.1-bin.tar.gz -C /" You will need to enter your password.
    • Check that the C++ compiler is installed by typing "c++ -v"

  • 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: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2016-08-29 - JimSkon
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback