what's the best stable editor & compiler for c++ with gui & under linux? [closed]

可紊 提交于 2019-12-29 05:25:27

问题


What's the best stable (editor & compiler) for C++ with gui that works under linux?

Note: Explicitly not looking for a full IDE.


回答1:


I like to code with Emacs. It has a nice gui also for gdb. I recently made a snapshot while i worked on some code snippet (see below, it doesn't look like 1980 at all :).

That said, there are a lot of other fine IDEs. I like Eclipse for Java development, and heard it has a nice C++ plugin too (CDT). Netbeans also works for C++ since recently. KDevelop, an IDE for KDE supporting many languages, is currently being rewritten for KDE4: KDevelop Blog. Looks promising. Then there are some others where i cannot tell you how they are since i've not tested them, including Anjuta (for the Gnome desktop) and Code::Blocks (written with wxWidgets it's quite cross-platform). If all you want is a GUI for the compiler and a symbol browser, you could also use geany, which is very fast and includes an embedded terminal like KDevelop.

All of these have their ups and downs. Best try each out and then decide. From the stability point of view, i've found Emacs is very stable and never crashes, Eclipse is also very mature. Netbeans gets the third place. It sometimes hangs but overall it's also quite mature. KDevelop likes(ed) to crash from time to time, but big progress was made in this regard. Especially version 3.5 did make a big step forward and felt more mature than any version before.

Emacs editing some code:

Emacs debug session:




回答2:


Staying on the realm of the free stuff, probably Eclipse with its C++ plugin, otherwise I code using g++ + gdb + make + gvim + other gnu stuff. The results are awesome, but the learning curve is severe.

Depending on what are you coding, there's Qt designer and KDevelop, too, but I haven't used them.

ADDED: Reading back your original question, you seem to want something (a list of programs) that's not yet an IDE, though it offers a GUI. I don't remember any GUIs for gcc, but gdb did have a GUI called DDD. So you'll have to use the console at least some of the time.




回答3:


Code::Blocks works well as a C++ IDE for both Windows and Linux. I now use it exclusively at work (on both platforms), and much prefer it to the likes of Visual Studio. I find the code completion tends to work a bit better too!

It's pretty good at picking up available compilers and works with gcc, MinGW and the Visual Studio compiler and it also has debugging capabilities.




回答4:


SciTE is a good "programmer's editor", and it was especially written for that purpose. The engine behind it, Scintilla, has also widespread use in IDEs. The de-facto compiler on Linux is GCC, and it's a very powerful and stable one, too. You should go for GCC 4 or later for better C++-Performance.

SciTE has basic support to integrate the compiler (push a button and see the compiler's output, rudimentary code completion,..), too. The most important thing about SciTE is, that you have to edit it's own config first to make it a comfortable editor. Many important features like line numbers, file tabs, restoring sessions, are disabled by default.

You also need to familiarize yourself with the (admittedly easy) Makefile format, so you can use make for building. SciTE + make are not a subsitute of a good IDE in any way, but if you don't want to use a full fledged IDE, they are surprisingly good at still keeping you productive.




回答5:


Eclipse is good. Netbeans with it's plugin is also nice. You could also use Kdevelop(very configurable).

If you want GUI Moranar mentioned QT desiner. There is also Glade(GTK bindings), and WxGlade(wx bindings for several languages including C++).




回答6:


When it comes to development in a Linux environment there are 2 ways you can choose from: If you want to manage your project in a all-in-one fashion, you should go for KDevelop.

It is the most advanced and stable IDE i have worked with so far (in a Linux environment). Code::Blocks, Eclipse CDT, Netbeans are very powerful as well, but from my experience KDevelop has everything the other IDEs have to offer and more. But you should checkout the other IDEs for yourself, since this is my opinion.

The second and more time-consuming way is to get to know the gnu development toolchain Moranar mentioned. gcc/g++, make, gdb/DDD, valgrind,(g)vim/scite ... .For testing purposes its also recommended to familiarize yourself with a scripting language like perl or bash script. It saves hell of a lot time ...

If you want to get the job done fast you should stick to the IDE solutions, but if you want to be a more complete, more capable developer go for the gnu toolchain. I haven't regret it so far.

p.s. if you choose scite as your editor, ask ypnos (the guy above me) for his config. It has everything you'll going to need and its easy on the eyes too :)




回答7:


I'm going to put my two cents in here. I really enjoy KATE (part of KDE). It's the editor used in KDevelop, but doesn't serve as an IDE. Rather, it has a built-in command-line, so you can issue the build commands yourself. On a project with Make or Scons or Bjam or something else set up (very easy to write a short Bjam file for your project), you can just issue the build command directly.

I like KATE because it has features of an IDE without the bloat. It doesn't have refactoring support, unfortunately, but it does have a symbol browser which I don't use enough.




回答8:


I like SciTE on linux and windows.

It's very lightweight, and customizable.




回答9:


I suggest Eclipse since it's a very easy IDE to use for beginners. It's also available for Windows and Linux. The one of the most useful feature is auto completion. Also, there's a large community that will be able to answer any questions you have regarding it.




回答10:


Eclipse and Netbeans are both fantastic for all supported languages. Eclipse used to be much faster, netbeans caught up and is a big more functional, cleaner and supports more languages.

Also, if you consider it an investment that you don't want to reproduce, go with Netbeans--they currently have the most activity of the open-source editors and it's increasing.

Personally I prefer to be environment agnostic. I learn what I need to know about whatever environment I'm working in without getting too attached to keybindings and particular layout tricks, stuff like that.

I still run into people who use emacs and love it (and some who use VI!). They feel they can't change because of their investment in learning keystrokes. To me that seems a little self-defeating (you are denying yourself the use of newer/other tools by becoming attached to a specific keyboard layout) but whatever.




回答11:


Sun Studio includes a full IDE plus a very high performance compiler and is available for Red Hat (or CentOS) and SUSE Linux platforms as well as Solaris. It is free but is not, at this time, open source to the best of my knowledge.




回答12:


I'm not sure if your question is an exact duplicate but this has been discussed several times. See this answer for a good listing of all the other Q & A threads where this has been discussed. Or select the IDE tag.


Edit:

I suppose this will probably sound nasty but I can't think of another way to say this so apologies in advance if this sounds rude:

As far as I know (and I'm sure people will correct me if I'm wrong) the main difference between an IDE and an editor/compiler combo is the presence of an integrated debugger. Since I cannot imagine doing serious development work without a debugger handy, why not just say "IDE" and be done with it? I mean you'll need a debugger anyway--why not just get the whole thing in one package and call it a day? If you really don't need a debugger around then please share what sort of development you're doing that you only need to write and compile code without ever needing to debug it.

I understand the "if you don't use it, don't pay for it" philosophy but I think saying "Well, I'll just get an editor and compiler because I don't need the extra overhead of an IDE" is just a false proposition in this particular case.




回答13:


SciTE + scite-debug == All I have ever needed

SciTE: http://www.scintilla.org/SciTE.html scite-debug: http://scitedebug.luaforge.net/




回答14:


KDevelop, code::blocks, Eclipse




回答15:


I think Qt Creator that comes with Qt SDK is the best choice, whole package is now LGPL and runs on Windows, Linux and Mac OS.




回答16:


The best editor I've ever used on Windows OR Linux is SlickEdit. It's not free (though you can download a completely functional trial) - but it's worth every penny in my opinion.

When it comes to free/open source editors on Linux I now use Geany and on Windows I use Notepad++.

As for compilers - gcc is my compiler of choice.



来源:https://stackoverflow.com/questions/164693/whats-the-best-stable-editor-compiler-for-c-with-gui-under-linux

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!