How-to Getting-Started on the Linux NetBeans 7.3 IDE for C/C++ Development

November 9th, 2012 by Regaz



The Tutorial Present a Simple Linux Getting-Started 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 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 Content and Details of Guides are Expressly Essentials to Give Focus Only to the Essentials Instructions and Commands and Make the Tut Easier to Understand ;)

To the Article Bottom Link to Bonus Content on Installing Evernote for Mint.

Netbeans C++
  1. Open a Terminal Window
    (Press “Enter” to Execute Commands)
  2. Check if C++ Compiler is Installed
    which g++

    To Install g++ Compiler on Main Distros:

    • Ubuntu-Debian Like Distros:
      apt-get install g++
    • RedHat Like Distros:
      yum install gcc-c++
    • Mandriva Like Distros:
      rpmi install gcc-c++
    • Gentoo Based Distros:
      emerge gcc
    • Arch-Linux Distro:
      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
    #include

    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. List of Guides to Installing the Netbeans 7.3+ IDE for C/C++ on Main Linux Distros:

    Installing NetBeans 7 C/C++ for Linux

Tags: , , , , , , , , ,