32

I have been using Eclipse for C and C++ development for some time. Unfortunately Eclipse has it's faults (speed, the crappy integrated console, and some bugs that pop up from time to time).

For C++ development Qt Creator is a very good choice, but I need something for both C and C++.

I don't really need the integration parts of the IDE (I don't need an integrated project manager, compiler or debuger). What I need is code navigation. Eclipse provides a great feature "callgraph for structure elements" that is unparalleled when I need to modify big crummy code bases (which is what I do most of the time).

Code completion and at least some integration documentation (doxygen, generic comments before functions, system documentation) is an absolute necessity.

Oh and the IDE has to be crossplatform.

Is there something other then Eclipse?

0

14 Answers 14

21

Check out Code::Blocks as an option. Much lighter weight, updated constantly (via SVN nightlies), many of the same features as Eclipse. C::B has Doxyblocks, a plugin for Doxygen.

4
  • 2
    Tried, but code navigation is just years behind Eclipse. Mar 19, 2011 at 11:48
  • I'll admit that's a feature that I don't employ as often in an IDE. There are lots of plugins, so perhaps one of those has the feature for which you seek. Otherwise, no skin off my nose if you pick something else.
    – jonsca
    Mar 19, 2011 at 12:12
  • +1 for code::blocks. As a developer that's mostly been using visual studio in the past, when I decided to go cross platform I tried eclipse and found it far too slow, so now I'm using code::blocks on windows and linux and am pretty happy. Not saying it will tick all your boxes by any means.
    – Rich
    Mar 26, 2011 at 13:48
  • 3
    +1 for code::blocks, as for eclipse? Never liked it for many reasons, mainly speed, which is appaling. Why would anyone want to develop native apps in something like Eclipse, Netbeans and now Very Slow 2010? I believe that the best way to develop native apps is in native IDE (for many reasons not only for speed), and code::blocks is really cool (much better in my personal opinion than Very Slow 2010 since the latter is now running under .Net which is slow and now Very Slow 2010 has unacceptable performance). Apr 10, 2011 at 10:06
18

Wow. I can't believe I'm the first person pointing to Emacs. ;-)

2
  • 1
    @jason -- vim is better. (personal opinion, not statement of fact or intended as flame bait) @let_me_be: Both emacs and vim are extremely powerful tools that provide all of the features you require. Learning at least one of them well is a very good idea. And if you're going to learn only one...vim is better ;) Mar 26, 2011 at 12:39
  • @William -- vim is an excellent text editor, but there are a lot of better tools out there than Eclipse for editing text. Emacs is far enough along the "full development environment" curve that it is accused of being an operating system. I think that speaks volumes about how much closer it is to Eclipse. Apr 12, 2011 at 6:06
17

I like qtcreator which you can use without writing against Qt.

It is modern, nicely looking, cross-platform (ie on Windows, OS X and Linux), maintained / extended at a good clip, integrated with other tools (debuggers, revision control, ...). Oh, and it is free.

4
  • 1
    As I already mentioned in the question, unfortunately QtCreator isn't suitable for C development. Mar 19, 2011 at 11:34
  • 10
    Yes, QtCreator prefers C++ but you can still use it to edit C files so your downvote is a little harsh. And QtCreator still gives you decent integration with the other components. I don't think anything will give code analysis / navigation for both languages in a modern and cross-platform tool. If that is a must, stick with Eclipse. FWIW I use Emacs cross-platform for many languages. Mar 19, 2011 at 12:24
  • I use Qt in my daily routine for C++ and the parser from the latest nightly builds is very nice and fast.
    – Tarantula
    Mar 23, 2011 at 18:52
  • But it's a C++ parser, right? Original question was about something that does C and C++, parses code structure, is free, cross-platform and integrated with other tools. Making coffee is optional. Mar 23, 2011 at 19:00
15
+100

Have you tried NetBeans? There is a plugin for C/C++ development.

1
  • Netbeans aren't bad, but the callgraph feature is limited to functions only. :-/ Mar 19, 2011 at 11:32
10

Take a look into KDevelop4. It is quite good

2
  • Navigation in Code::Blocks is not as "colourful" as Eclipse, but for C++ it can be quite effective. In KDevelop 4.2, in other hand, it is eve better. It lacks, unfortunately, a bit of maturity. Its worth a try anyway.
    – j4x
    Mar 24, 2011 at 10:53
  • @fljx I agree. Unfortunately, it still has some issues, but it is much better then Kdevelop 4.0 was ;) Good thing is it's developer are working on it, and fixing bugs Mar 24, 2011 at 10:57
7

Hm, I'm kinda surprised, that noone mentioned SlickEdit.

I think everyone, who has ever used Visual Studio and who has migrated to Linux programming, has had this problem - what to use for C++ dev. Now I use SlickEdit and I'm pretty satisfied.

Here's a short quote from the official web-site:
Welcome to SlickEdit 2010. SlickEdit 2010 is a cross-platform, multi-language code editor that gives programmers the ability to code in over 40 languages on 7 platforms. This latest version builds on the company’s 22 years of experience in enabling developers and development teams to create, navigate, modify, build, and debug code faster and more accurately

Here you could see what features are supported by language (see that C/C++ has all possible features)

Here You can see some of the cool features (and they are really cool) + examples + some demos (video).

Here is a list with the newest features.

Also, the debugger is pretty nice, it's kinda Visual Studio's debugger - easy to use and powerful (not as VS's of course, but it's still nice).

You can configure SlickEdit however you like. Yep, the options are too many, it seems too confusing, but this gives you the opportunity to change anything.

The problem is, that it is not free (in a legal way, at least.. ;) ), but you could download a trial to try it. I've tried some other products, and this one is the best to me.

I'd suggest you to try it, at least (:

1
  • Not cross platform...
    – stdcall
    Jun 30, 2013 at 5:52
6

I currently use Vim with the NERD Tree, tag list and a plugins. I'm pretty happy with the workflow using those plugins provide.

5

Try with codelite

It has a great codecompletion (better than eclipse)

It is small and fast and run in windows and linux

Other options are, qtcreator, kdevelop, codeblocks and ultimate++

4

I think Emacs could be a proper candidate to satisfy your requirements.

It can be something like a simple text editor or a fully integrated environment as you like.

You can add special modes created by Emacs community for any programming language and features like code completion or any kind of documentation. And there is a lot of alternatives of these modes. So you can choose.

You can customize almost everything about Emacs, like keyboard shortcuts that can be for any purpose you can imagine or indentations and colors, and take your customizations with one file to everywhere you like. (The .emacs file)

A lot of tools like gdb or grep or svn are or can be integrated in emacs so you can use them in a more efficent way than using from command line.

But it has downsides. Using emacs requires much more Linux knowledge than any other graphical environments. (I dont know how it feels using emacs in Windows ) It is hard to learn how to use Emacs and how to add features. So it is not suitable for anyone who doesn't like to get dirty.

3

Try Source Navigator NG. Helps see relationships among classes in class hierarchies, etc. Code browser, as in, you can go back to where you were. Give yourself 5 hours on this and see how it takes you. It's helped me. http://sourcenav.berlios.de/

2

I've tried many Linux IDEs and came to conclusion that there is nothing better that Eclipse. Simply I always lacked some features that Eclipse offers in them. Maybe kdevelop comes close however I found the Eclipse's SVN plugin much more usable. Besides I use VIM for smaller/test projects. Maybe some day we'll see VC under Linux and will be a serious alternative ;-)

3
  • 3
    You're mistaking things. Linux is an IDE. Except that you have different programs for what is one big package in eg. visual studio: you have editors, debuggers, version control, documentation processors, build systems, code completion, and even editor macros (at least for emacs and vi). Moreover, it is quite easy to integrate them together. I use VS at work and find it great, but when it comes to integrating 3rd party tools it sucks. I use emacs at home with make, gdb, doxygen, mercurial and etags and I find it way more flexible for the same work done. Mar 22, 2011 at 18:07
  • The qustion was about OP looking for alternatives for the Eclipse IDE. I suggested that there are few comparable alternatves (command line tools / vim / emacse are uncomparable because they feel different). How am I mistaking things?
    – kyku
    Mar 23, 2011 at 19:36
  • they don't feel that different. My day to day work is the same whether I use VS or emacs + stuff. Mar 23, 2011 at 22:27
2

MonoDevelop is a cross-platform IDE that supports code navigation. Although its primary focus is on C# development, the latest version also supports C/C++, including code completion.

1
  • latest version also supports does not sound like a very mature feature
    – mbx
    Apr 4, 2011 at 13:02
1

KDevelop on Linux works quite well

(and I have added more here to make this reply longer than 20 characters)

-3

Since you didn't mention crosss platform as being one of your criterion why don't you download Visual Studio Express http://www.microsoft.com/express/Downloads/ and be done with?

1
  • 5
    Quote from the OP's question: Oh and the IDE has to be crossplatform..
    – Xeo
    Mar 22, 2011 at 18:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.