Soloman
Rookie

good C++ IDE for linux?


Earlier I was using windows operating system but when my friend suggested me that linux is better I changed it. But the big problem I am facing is that I do not know how to compile C/C++ sources and integrated development environment (IDE). So I am looking a good C++ IDE for Linux. Please provide me some good suggestions….
6 months ago
Respond to this discussion
Aditya Jaju | Nov 23 2011


LINUX is always a better option for programmers. It is very easy to use C++ on Linux. I will explain how to compile in Linux. You just need to use the basic terminal/konsole and install a vim package. Just follow the following simple instruction and you’ll be good to go.

Start your Linux operating system

Open the terminal/konsole

Type sudo apt-get install <name_of_package>. Replace name_of_package by vim (without_quotes) -- and press enter

It will ask for your system password to Start the installation of the package into your system.

Installation will take <10 minutes.

To begin compiling the program in linux:

Type after :~$ vim <file_name_of_your_choice> followed by the extension.cpp

  • For example: root@somename:~$ vim prg.cpp

This will open the file prg.cpp

Press "i" This will get you in the insert mode where you can enter the program. Type in your C++ program.

When you have finished writing the program hit the ESC key to go out of the INSERT mode.

Type “:wq” to save and exit the file prg.cpp (without quotes)

Type only “:q” to just quit the file without saving.

This will take you back to the terminal. Now to compile and check for errors type in

"g++ prg1.cpp –o <executable_file_name>"

for example-- "g++ prg1.cpp –o alkg"

OR "g++ abc123.cpp –o file123" (Can be any name)

Check the errors (if any) and make appropriate and useful changes using the help of the vim statement and g++ command.

Use ./ to start the run time file.

enter the following “./alkg”

Or “./file123”

This is a very easy way to use C++ in LINUX. It is a smooth process and convenient once you get used to it. It appears to look harder than the usual windows C++ compilers but once you get enough experience working with it you will feel comfortable to use it. Hope I could help.

© 2012, Instamedia. Some rights reserved. Powered by Instapress and Instacheckin.