Netbeans 8.x IDE for C/C++ Quick-Start with Hello-World Project Example Easy Visual-Guide

January 4th, 2015 by thelinuxevangelist

The Article Present a Simple Quick-Start on Netbeans C/C++ IDE with a C++ Hello-World Detailed Visual Example on Linux Distros.

To the Post Bottom you Find a Link to Guides on Installing the NetBeans 8.x C/C++ IDE on Main Linux Distros.

To Make the Entire Process Easier to Visualize and Retain the Posts Includes the Basic Screenshots of the Essentials Steps Involved.

The Content and Details of Guides are Expressly Reduced to Give Focus Only to the Essentials Instructions and Commands and Make Tut Easier to Read & Digest ;)

Netbeans 8 C/C++ Hello-World - Featured
  1. Open a Terminal Window
    (Press “Enter” to Execute Commands)
  2. How-to Install the Netbeans 8.x+ IDE for C/C++ on Linux:

    Installing NetBeans 8.x C/C++ for Linux



  3. Install the C++ Compiler
    For Debian/Ubuntu Based:

    sudo apt-get install g++

    On Red-Hat Linux Based:

    sudo yum install gcc-c++

    On SUSE Linux Based:

    sudo zypper in gcc-c++

    On Mandriva/Mageia:

    sudo urpmi gcc-c++

    On Arch-Linux Based:

    sudo pacman -S g++
  4. Make a New Netbeans C++ Application

    Click on New-Project Icon

    Netbeans IDE New Project

    To the Right Select C++ Application

    Netbeans IDE New C++ Application

    Set the Application Data

    Netbeans IDE New C++ Application - Data

    Follow

  5. Set the C++ Compiler

    Right-Click Project Name >> Properties

    Netbeans IDE Set Project Properties

    Click … Tool Collection

    Netbeans IDE Project Properties Set Tool Collection

    Set the C++ Compiler as /usr/bin/g++

    Netbeans IDE Project Properties Set C++ Compiler

  6. Run Netbeans Hello-World C++

    Here a Sample C++ Hello-World main.ccp Content

    #include <cstdlib>
    #include <iostream>
    using namespace std;
    int main(int argc, char** argv) {
      cout << "Hello World! :)" << endl;
      return 0;
    }
    

    Click on Run Project Button

    Netbeans IDE Run Project

Share on Tumblr

Tags: , , , , , , , , , , , , , , , ,


Comments are disabled