Reputation: 36048
I have some very specific questions related to emacs for building C applications:
1) How can I compile a file written in C/C++ using emacs.
2) How can I have something similar with MS Intellisense in emacs?
3) How can I add an C/C++ library to the compiler and emacs to know about it.
many thanks
Upvotes: 1
Views: 1319
Reputation: 11306
Take a look at this blog post I made, which shows you how to write a cpp program in emacs. If you want tab completion you also need to learn to generate and use tags, and the M-/ button.
When programming using emacs however, you do more than emulate Developer Studio or Eclipse. Learning to use keyboard macros, and program in elisp, will empower you to write little utilities that take a few minutes to write and save many times that in drudge work.
Upvotes: 1
Reputation: 87174
code completion - Semantic (from CEDET package), compilation - depends on what you use to compile, but basically you can use EDE package (from CEDET) to maintain & compile projects
Upvotes: 2
Reputation: 9193
Emacs is an editor, not an IDE. It has a ton of 'extra' features and is very configurable for an editor - but it's really not meant to be an IDE. If you want an open-source IDE you might want to check out Eclipse.
Having said that - you can compile from within emacs in a number of ways:
1. Just open a shell in another buffer (M-x shell
) and compile from there.
2. Set up a Makefile and use the M-x compile
I'm sure there are complicated ways to get the other behaviors - but you'd probably be better off using a real IDE.
Upvotes: 0
Reputation: 74440
Upvotes: 4