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

On Windows, using a GCC preprocessor does not work

Open fschoenm opened this issue 10 months ago • 0 comments

When trying to run fastddsgen on Windows with a GCC preprocessor, it fails with the following error:

$ fastddsgen Header.idl -replace -ppPath aarch64-none-linux-gnu-cpp"
Processing the file Header.idl...
aarch64-none-linux-gnu-cpp: fatal error: too many input files
compilation terminated.
ERROR<callPreprocessor>: Preprocessor return an error 1

The problem seems to be that fastddsgen assumes that on Windows, cl.exe is the only valid compiler/preprocessor to use. The GCC preprocessor can only be used on Linux and macOS.

Could you somehow fix this problem (e.g. depending on the name of the -ppPath argument) or add a work-around via another CLI argument to specify the type of preprocessor?

fschoenm avatar Apr 16 '24 13:04 fschoenm