Netbeans 7.x IDE for C/C++ Getting-Started Hello-World Project Example Easy Visual-Guide

October 20th, 2012 by Regaz

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

To the Post Bottom you Find a Link to Guides on Installing the NetBeans 7.x C/C++ IDE on Mint and others 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 C++
  1. Open a Terminal Window
    (Press “Enter” to Execute Commands)
  2. 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++
  3. 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

  4. 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

  5. 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

  6. How-to Install the Netbeans 7.x+ IDE for C/C++ on Linux Distros:

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

Tags: , , , , , , , ,