LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 08: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, 08:36 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,711

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
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, 11:25 AM   #3
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: Redhat/Centos, Ubuntu, Raspbian, Fedora
Posts: 1,692

Rep: Reputation: 353Reputation: 353Reputation: 353Reputation: 353
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 11:28 AM.
 
Old 11-02-2015, 12:22 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2519Reputation: 2519Reputation: 2519Reputation: 2519Reputation: 2519Reputation: 2519Reputation: 2519Reputation: 2519Reputation: 2519Reputation: 2519Reputation: 2519
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-02-2015, 12:35 AM   #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,226

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
emacs?
 
Old 11-03-2015, 02: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, 02:40 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 6,754
Blog Entries: 3

Rep: Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628Reputation: 1628
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, 12:18 PM   #8
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 3,304
Blog Entries: 1

Rep: Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686Reputation: 686
$ 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, 01:15 PM   #9
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 5,825
Blog Entries: 12

Rep: Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008Reputation: 2008
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 01:17 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 12: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration