开发者

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开发者_如何学Python 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!


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.


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.


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜