I was about to write a program today to go through my source code and find all the files included. I did a search on the internet and only found a windows program, the reason being that the linux program was something so standard I had missed it. Its called makedepend and ran as such
makedepend main.cpp -f-
produces output as such
main.c.o: /usr/include/_G_config.h /usr/include/alloca.h /usr/include/assert.h main.c.o: /usr/include/bits/confname.h /usr/include/bits/endian.h main.c.o: /usr/include/bits/environments.h /usr/include/bits/huge_val.h main.c.o: /usr/include/bits/local_lim.h /usr/include/bits/mathcalls.h
but produces a few more lines.
I then process the output into ctags and can find the definition of any bit of code I want. I think I shall write a little bash script and put the features into my ode program.
Whats rearly nice is today I found a good example of code reuse the unix way and saved myself work.
Regards
Owen
Date: 19-Sep-01 Time: 18:38:51