MATLAB: Do I get compilation erros for the autogenerated code

codecompilationerrrosforgeneratedsimulink coderthe

I am using Real-time Workshop and when the build process start compilation I receive lots of syntax errors from the auto-generated header files.

Best Answer

One of the subsystems in the user model is named as 'Queue' and the header file generated for this Model reference is 'queue.h'. This header file also exists in MSVC 6.0 and 7.1 as a built-in header file.
Since the header file for the Model reference is saved in slprj folder, compiler picks up the built-in header instead of the model reference header.
This causes the compilation errors.