Friday, November 9, 2012

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

The Tutorial Present a Simple Linux Getting-Started on Netbeans Cpp IDE with a C++ Hello-World Detailed Visual Example.

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

To Make the Entire Process Easier to Visualize and Retain the Articles 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 ;)

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


Netbeans C++
  1. Open a Terminal Window
  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 IDE for C/C++ on Main Linux Distros:

    Installing NetBeans 7 C/C++ for Linux