This bug has been fixed in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
The ability to generate C++ code without the need for compilation is not available in Real-Time Workshop 6.2 (R14SP2). When you select the 'Generate code only' option, Real-Time Workshop also generates a makefile and a bat file. The resulting generated code or makefile should be buildable as if the option was not selected.
To workaround this issue, set the model to use the UNIX TMF file. You can do this from the Real-Time Workshop pane of the Configuration Parameters dialog box by
1. Specifying grt_unix.tmf or ert_unix.tmf in the 'Template makefile' field.
2. Selecting the "Generate code only" option.
3. Clicking Generate Code.
Even though the TMF file is for UNIX based builds, Real-Time Workshop can still generate the code on a PC.
Best Answer