Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How do I use cxref to process source files in more than one directory?

0
Posted

How do I use cxref to process source files in more than one directory?

0

The cxref program depends on a database of cross references, these must all be consistent. This requires that all of the files to be cross referenced are in the same directory tree. Example: directory files – – – – – – – – basedir : f0.c f0.h … |- s1 : f1.c f1.h … |- s2 : f2.c f2.h … … — f2.c — #include <...> #include “f2.h” #include “../s1/f1.h” #include “f0.h” ———- In the base directory ‘basedir’ run ‘cxref -xref -Odoc s2/f2.c -html -I.’. This will create the file ‘doc/s2/f2.c.html’ for the file ‘f2.c’ and this will contain references to the files ‘doc/s2/f2.h.html’, ‘doc/s1/f1.h.html’ and ‘doc/f0.h.html’. The subdirectories ‘doc/s1’, ‘doc/s2’ will be automatically created within the ‘doc’ directory to put the files into (the ‘doc’ directory must already exist). directory files – – – – – – – – basedir |- doc : f0.c.html f0.h.html … cxref.html |- s1 : f1.c.html f1.h.html … |- s2 : f2.c.html f2.h.html … … An alternative method is to use the -R option to cxref. I

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.