How can I use other preprocessors with idltojava?
Here’s the note from the Sun idltojava documentation on how this is supposed to work: Note: idltojava is hard-coded to use a default preprocessor. On Solaris machines, it uses the path /usr/ccs/lib/cpp when looking for the preprocessor. On Wintel machines, it is hard-coded to use the MS Visual C++ preprocessor. You can change the preprocessor that idltojava uses by setting two environment variables: CPP –set this environment variable to the full path name of the preprocessor executable you want to use. CPPARGS –set this environment variable to the complete list of arguments to be passed to the preprocessor. The preprocessor needs to write to standard output, so if it does not do so by default, you should include the argument appropriate to your preprocessor to accomplish that. Examples for Wintel users: Windows 95 –in your autoexec.
Related Questions
- When I compile an IDL file with the idltojava compiler, I get a fatal error: idltojava.exe: fatal error: cannot preprocess input; No such file or directory". What is the problem?
- What is the difference between the idltojava compiler and the idlj compiler?
- Why does idltojava give a can find the preprocessor error on Windows?