Fast-DDS-Gen icon indicating copy to clipboard operation
Fast-DDS-Gen copied to clipboard

fastddsgen.bat .\HelloWorld.idl Error

Open wanghuqiang123 opened this issue 1 year ago • 1 comments

OS:windows11+vs2019 I install fastdds using binary packages on Windows,I use HellowWorldExample, I tried to generate the idl file using fastddsgen myself, but when I ran fastddsgen.bat/Helloworld.idl, the following error occurred:

Processing the file .\HelloWorld.idl... ERROR<callPreprocessor>: Cannot execute the preprocessor. Reason: Cannot run program "cl.exe": CreateProcess error=2, The system cannot find the specified file,

I am a beginner and I would like to know if it is necessary to use the fastddsgen tool and idl file before using fastdds

wanghuqiang123 avatar Dec 24 '23 14:12 wanghuqiang123

Hi @wanghuqiang123 thanks for using Fast DDS. I would recommend you use the Visual Studio Developer Command Prompt to avoid this issue. You can also run fastddsgen with the flag -ppDisable to disable preprocessor, or with the flag -ppPath with the preprocessor path.

JesusPoderoso avatar Jan 15 '24 10:01 JesusPoderoso