Where could I find C++ libraries in my emacs? I have already installed emacs on my computer and already using it l开发者_开发百科ately. I just want to add boost libraries in emacs so I could use them.
Emacs is a text editor, it doesn't compile your code. It doesn't know (or need to know) anything about your libraries.
However, there are commands for running the compiler from inside emacs, I've never done it myself, I use command line compiling and makefiles for bigger projects.
I would write the program using the boost libraries (or any libraries) just like normal. I'm guessing you'd use GCC to compile as you're using emacs to edit. When compiling you need to tell the compiler (GCC) where to look for the header files and the libraries.
For example, in your program you will have a line like
#include <library.h>
then compile it using
g++ myprogram.cpp -I/path/to/header/files -L/path/to/library
If your program is more than a couple of files, I would recommend writing a makefile for it and including all the required compiler flags and search paths in the makefile.
You need to supply them in your make script, or you can set an environment value for GCC. Take a look at this question.
You could use CEDET to setup parsing of header files. Please look to my CEDET config for example
精彩评论