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.

Why does cxref put in links to system include files?

cxref files LINKS system
0
10 Posted

Why does cxref put in links to system include files?

0

The way that cxref knows which include files are local to the program and which ones are system ones is by the way that they are included. Any that use double quotes ‘”‘ are local ones and wil have links to them included in the cross reference output. The include files that use the angle brackets ‘<>‘ are system files and do not have links to them included. The best solution is to change the include files so that the distinction is clear. An alternative is to use the ‘-isystem DIRNAME’ option of gcc. This will cause gcc to treat files in this directory as if they are system files. Since cxref uses gcc for the pre-processing, this option can be passed through using ‘cxref file.c — -isystem DIRNAME’.

Related Questions

What is your question?

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