Error executing CL.EXE preprocessor

2 posts / 0 new
Last post
Offline
Last seen: 3 years 3 months ago
Joined: 07/26/2021
Posts: 4
Error executing CL.EXE preprocessor

I'm getting this error message when I rund the code generator.

"INFO com.rti.ndds.nddsgen.Main Running rtiddsgen version 3.1.0, please wait ...
ERROR com.rti.ndds.nddsgen.Main Fail: java.lang.Exception: Error executing CL.EXE preprocessor

INFO com.rti.ndds.nddsgen.Main Done (failures)"

 

Here's a screenshot of my code generator:

 

I tried putting the CL.EXE file in the directory, but that didn't fix it.

I also tried to add the path to CL.EXE which didn't work as well.

Any recommendations or suggestion?

Keywords:
Howard's picture
Offline
Last seen: 6 hours 24 min ago
Joined: 11/29/2012
Posts: 605

On Windows, you need to have the full visual studio native tools environment set when you run the launcher if you want "rtiddsgen" to use the cl.exe preprocessor to process the idl.  But if your IDL does not have any preprocessor directives, you should just check the "Disable pre-processor" box and run.

It's much easier to run "rtiddsgen" from the command line and get it to use the preprocessor...by using a command window that was created by the Visual Studio menu shortcut "Developer Command Prompt for VS20xx".