LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   c++ programming in Linux. (https://www.linuxquestions.org/questions/linux-newbie-8/c-programming-in-linux-4175557630/)

slayme40 10-31-2015 07:08 AM

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.

jpollard 10-31-2015 07:36 AM

It depends on what you want.

Linux development is about the same, whether it is C or C++. The tools are available.

berndbausch 10-31-2015 10:25 AM

Quote:

Originally Posted by slayme40 (Post 5442772)
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.

John VV 11-01-2015 11:22 PM

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

frieza 11-01-2015 11:35 PM

emacs?

parul1212 11-03-2015 01:11 AM

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?

ondoho 11-03-2015 01:40 AM

Quote:

Originally Posted by parul1212 (Post 5443900)
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?

Shadow_7 11-04-2015 11:18 AM

$ 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.

rtmistler 11-04-2015 12:15 PM

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++.


All times are GMT -5. The time now is 07:52 AM.