From: Marc W. <Mar...@si...> - 2004-10-14 14:06:17
|
The following problem(s): - I built a compiler that should insert tracing information into methods (function trace). The name is: trace - To compile my programs, I call: ./trace -- -o xxx xxx.cxx - Now, my tracer needs the inclusion of file fntracer.hxx. So I compile with: ./trace -d-include -dfntrace.hxx -- -o xxx xxx.cxx Problem: The option "-include fntrace.hxx" is not passed to the preprocessor. If I call ./trace -DX -- -o xxx xxx.cxx, this is also not passed to the preprocessor, nor is any other option, as -I and so on. Solution: One possible solution: Apply my patch. My patch does the following: - Add a method to get the CC options to OpencxxConfiguration - In file driver2.cc method RunPreprocessor, inserts the CC options after argv.push_back(compiler) That's it. You can find my code in "opencxx-problem.tar.gz". There will follow more mails on that subject later in this mailing list... Please fix this problem for the next release. Thank's Marc |