I must be missing something here. I'm trying to get the cscope database to
use absolute path names so that Vim will find the files I request. There
seems to be a solution where you find <every file> and dump it in
cscope.files for cscope to use. But that's lame (and I presume, slow). Is
there a variable I can set in Vim that prepends a path to cscope files? Or
maybe there's a better way to generate a cscope database with absolute
paths?
If all else fails, I'll do all this in a script, and call the script from
Vim. But based on what I understand of typical *nix programs, it seems
like an absolute-path flag should be available.
Thanks,
-James
If all your files are in or below a particular directory, I think
you can just give cscope the full path name to that directory when
you build the database. If you've already built a database with
relative path names, you can use cscope's -P to add a path prefix to
all the file names in the database.
HTH,
Gary
You can specify a prepend path while adding the cscope database
(see help of ":cs add"). Then use ":cs show" to verify that the right
prepend path *is* being used.
Regards,
Navdeep
____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs
Thanks for your help.
On Wed, 16 Jan 2008 12:03:28 -0600, Navdeep Parhar <nspa...@yahoo.com>
wrote: