Looking for ideas on setting up a convenient and productive development environment for C development. I found C editing with Vim very helpful but I would like to get a wider sampling of suggestions.
|
|
|||||
|
|
I persisted with Vim for a while, it's worth knowing the VIM basics as you will always find a UNIX box somewhere that only has that, but I tried Emacs and haven't looked back. Eclipse is a 'modern' alternative, I have all three on my system ! |
||||
|
|
|
It's very much a personal preference, so I don't think I can do much more than tell you what I use. I have Emacs set up with Flymake mode, which periodically compiles the file you're working on and parses the compiler output to figure out what errors you've made. It hilights the errors/warnings in the buffer, and shows the associated compiler error message |
||||
|
|
|
You can use Netbeans C/C++ Package that work with G++/GCC : |
||||
|
|
|
my personal favorite is exVim. Its have lots of vim plugins which makes it very easy to use with large code base. I till take approx 1 day to learn its features but it will be worth it. |
||||
|
|
|
I edit C with Vim in the console. I employ makefiles and have a number of compilers to test my code against, including gcc, clang (LLVM) and icc. Other things I consider part of my development environment: the use of grep, debuggers and valgrind. A scripting language for more complicated builds. Git for version control. More important in my mind than what you use to edit the code is how you structure your code. How to lay that out is probably a question for Stack Overflow, but, as you asked, I often have a separate directory for object code not for distribution and another folder for the resultant binar(y|ies). I have a testing folder which contains more C files that use all the generic code I'm writing and these I valgrind, along with the final project file. |
||||
|
|
|
I use Kate(text) gcc/avr-gcc and make, with Git as VC. I mainly do embedded stuff in c and computer side in python. |
||||
|
|
|
You can try Motor IDE. It's curses based so you should feel like at home (tm) .) It's also a bit sad because it's not being maintained for 5 years now so somethings might be broken. Although still - I believe it's worth a try. |
||||
|
|
|
If you're doing C development under Unix/Linux, you absolutely have to be using Cscope if the project is any significant size. Cscope is a developer's tool for browsing source code -- jump to function Also, you mentioned Vim in your post... here is a tutorial on using Vim & Cscope together. |
||||
|
|
