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

January 4, 2015 | By the+gnu+linux+evangelist | Filed in: Tutorial.

The Article Presents 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 Easy to Understand and Visualize the Posts Includes the Basic Screenshots of All GUI Steps involved.

The Contents and Details of Guides are Expressly Essentials to Give Focus Only to the Essentials Instructions and Commands and Make the Tut Easier to Understand ;).

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


  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

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

QuickChic Theme • Powered by WordPress