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 can I pass extra arguments to the C pre-processor?

extra pass processor
0
10 Posted

How can I pass extra arguments to the C pre-processor?

0

The cxref program itself has three ways that you can specify the arguments that are passed to the C pre-processor. a) The -CPP option allows the name of the pre-processor program itself to be changed. e.g. ‘cxref -CPP “/usr/foo/cpp -C” foo.c’ will use the cpp from /usr/foo instead of the compiled in default and pass it the option -C. b) The most common C pre-processor commands are recognised by cxref automatically, these are -D*, -U* and -I*. c) Any amount of extra options can be passed to the preprocessor by appending them to the command line after the end-of-arguments marker ‘–‘. e.g. ‘cxref foo.c — -traditional’ will pass -traditional to the pre-processor.

Related Questions

What is your question?

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