Jessica
Jessica

Reputation: 2035

Import C + Makefile into a linux IDE?

I have a project for Linux that i've been developing for some time. Basically it's a bunch of C and H files together with a directory structure and a Makefile.

Every time I need to debug something it's so painful, I need to manually search for var. definitions, structs, etc.

Is there any good IDE out there for Linux that will allow me to import those files into a "project" and that will provide code completion or at least an easy way to get my bearings in the source code?

thanks!

Upvotes: 0

Views: 4524

Answers (3)

Yann Ramin
Yann Ramin

Reputation: 33187

There are several ways of going about this:

  • ctags: Most editors have ctags or etags support, which allows you to jump easily around in your source code. The tag file can be built by the makefile.
  • KDevelop: Version 4 is not bad, and is a more integrated IDE if standard text editors aren't your thing.
  • Eclipse with CDT: Eclipse is passable, and will work with C/C++ easily.
  • Emacs: Add CEDET (included in newer Emacs releases) for real code completion.

Upvotes: 1

phimuemue
phimuemue

Reputation: 35983

It depends on your definition of "good", but Emacs in connection with Cedet and AutocComplete does a good job in my opinion - but it's not too easy to get used to it.

Another IDE i've used (but not on Linux) is CodeBlocks.

Upvotes: 1

Spudd86
Spudd86

Reputation: 3006

Eclipse with the CDT

CDT is pretty much Makefile based, just create an empty 'make' project then drop your files into it and refresh in eclipse then add your make targets.

Eclipse should pick stuff up from make output.

Upvotes: 4

Related Questions