I'm attempting to generate Windows 7 C++ code for an IDL using rtiddsgen.bat. There are 2 IDLs involved as one includes the other but both are in the same directory. I've used the -ppPath to point to either the 2013 or 2010 MS compiler (cl.exe). In each instance I get the error 'main failed <path to cl.exe> preprocessor'. I've upped the verbosity level and that's still all I get. I've run the cl.exe with /analyze:only and get no error. If I copy the copy the include file into the main IDL it will generate the code files properly. Where am I going wrong here?
The format of the file I'm trying to build is thus (don't have exact files here so there may be some typos but just to give you an idea what they look like):
#include X.idl (this has in the struct for the header called X)
module Y {
struct Z {
double Z;
};
};
valuetype aMsg {
public X msgHeader;
public Y data;
};
};
Thanks for the help in advance.
A
Hi Adevivi,
You can add the
/analyze:only
option to rtiddsgen via the-ppOption
commad line argument. That is, if you want to runcl.exe /analyze:only
you will need to explictly pass both-ppPath
and-ppOption
. This forum post you will find alternatives to add CL.exe to your path if you do not want to use the-ppPath
parameter.You will find more detailed information on these command line arguments in rtiddsgen's user's manual.
Fernando.
I ran cl.exe with that option on the IDL and came up with no error. Doesn't seem like it's not finding cl.exe so I doubt adding it to the path will help.