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.
- Open a Terminal Window
- 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++
- Ubuntu-Debian Like Distros:
- Make a New Netbeans C++ Application
Click on New-Project Icon
To the Right Select C++ Application
Set the Application Data
Follow...
- Set the C++ Compiler
Right-Click Project Name >> Properties
Click ... Tool Collection
Set the C++ Compiler as /usr/bin/g++
- 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
List of Guides to Installing the Netbeans 7 IDE for C/C++ on Main Linux Distros: