LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2015, 07:08 AM   #1
slayme40
LQ Newbie
 
Registered: Oct 2015
Posts: 16

Rep: Reputation: Disabled
Question c++ programming in Linux.


Hi everybody,
I'm relatively new to Linux and I would like to know if anyone knows a good open source c++ ide for Linux. I'm using Opensuse 13.2 64bit.
 
Old 10-31-2015, 07:36 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It depends on what you want.

Linux development is about the same, whether it is C or C++. The tools are available.
 
Old 10-31-2015, 10:25 AM   #3
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by slayme40 View Post
Hi everybody,
I'm relatively new to Linux and I would like to know if anyone knows a good open source c++ ide for Linux. I'm using Opensuse 13.2 64bit.
You seem to be new to the internet as well. You can search there. This is the top result when I search for c++ ide linux (I use Bing, because I can): http://stackoverflow.com/questions/2...-ide-for-linux.

I would have thought Eclipse by the way, being the only IDE that I know of. Eclipse handles a number of languages.

Last edited by berndbausch; 10-31-2015 at 10:28 AM.
 
Old 11-01-2015, 11:22 PM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
gnome or KDE ?

opensuse has a bunch in the repos

Qt-creator5
Anjuta
Geany
kdevelop4

AND

a suse "pattern" on top of that

patterns-openSUSE-devel_ide - Integrated Development Environments
 
Old 11-01-2015, 11:35 PM   #5
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
emacs?
 
Old 11-03-2015, 01:11 AM   #6
parul1212
LQ Newbie
 
Registered: Nov 2015
Location: india
Posts: 5

Rep: Reputation: 0
i am a new Linux user and student who used to write C or C++ programs on MS-Windows. Now, I am using Ubuntu Linux. How can I compile a C or C++ program on Linux operating systems using bash Terminal application?
 
Old 11-03-2015, 01:40 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by parul1212 View Post
How can I compile a C or C++ program on Linux operating systems using bash Terminal application?
it's called gcc.
supposing you know how to write a C program in the first place.
of course there's always the man page:
Code:
man gcc
... but I'd start by reading some online tutorial about it.
i'm sure your extensive web searches have returned something?
 
Old 11-04-2015, 11:18 AM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
$ g++ -o executable program.cpp

Is your basic way to compile a C++ program from the command line. Use gcc for the C program. And probably a half dozen other ways.

Emacs or Vim are common CLI based options for IDEs. Although a stiff learning curve. Emacs does have a GUI variant. Various other gui options too, eclipse, anjuta, bluefish, plus many many text editors.
 
Old 11-04-2015, 12:15 PM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
As frieza says, emacs. But I don't know too much about emacs with C++, I always use it for C.

emacs integrates well with GDB so that you can run a debugger session from within the editor.

I don't run debugger sessions from within my editor much.

I perform my Makes and compiles through the command line.

I'm not a big subscriber to IDEs.

In fact, when using Visual C# or Qt, if you read the forums and such and ask for a specific example like
Quote:
How do I make a button ...?
You'll see the majority of the answers are direct code and not:
Quote:
Go to the widget, select it, right mouse click for edit properties ....
Instead they say stuff like:
Code:
    buttonName->accessMethod = senior
and so forth.

Always helps me to be a better coder when I'm directly involved with the code itself.

Other suggestions like g++ for C++ and gcc for C are on the mark too.

Are you already knowledgeable about C++? If also just starting with programming I'd recommend starting with C and then moving to C++.

Last edited by rtmistler; 11-04-2015 at 12:17 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration