The content of a header file needs to be copied and paste onto a few of my classes. Reason been – using include directive does not make reference of the file available to an external compiler, therefore it looks like my only option been to copy the content of the header into my classes.
I was wondering if I can use specific *inline directives to achieve this.
What are the best approach to creating my own pre-processor to behave as such?!
The most likely cause of your external compiler not expanding the includefile when compiling is a failure to setup the include search path — however addressing the specific question, you can get the gcc compiler to expand all the include files using the
-Eoption.So,
should work assuming I understand you problem correctly.