Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fastddsgen.bat .\HelloWorld.idl Error #281

Open
wanghuqiang123 opened this issue Dec 24, 2023 · 1 comment
Open

fastddsgen.bat .\HelloWorld.idl Error #281

wanghuqiang123 opened this issue Dec 24, 2023 · 1 comment

Comments

@wanghuqiang123
Copy link

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: 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

@JesusPoderoso
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants