Troubleshooting
Problem
Codegen Error: "The name specified is not recognized as an internal or external command, operable program or batch file..."
Resolving The Problem
SYMPTOM:
When building a model on Windows, the code generator is not recognized and an error, similar to the following, occurs:
Error 1:
The name specified is not recognized as an
internal or external command, operable program or batch file.
NMAKE : fatal error U1077: 'rtcppgen' : return code '0x1'
Stop.
Error: Makefile generation failed
Error 2:
'rtcppgen' is not recognized as an internal or external command, operable program or batch file.
make: *** [RTmakefiles] Error 0x1
Error: Makefile generation failed
CAUSE:
The PATH environment variable is set incorrectly or it has been truncated. The PATH environment variable should include: $ROSERT_HOME\bin\$ROSERT_HOST, where
$ROSERT_HOME is the Rose RealTime installation directory (the default location is C:\Program Files\Rational\Rose RealTime) and $ROSERT_HOST is the operating system that hosts Rose RealTime (e.g. win32).
RESOLUTION:
Add $ROSERT_HOME\bin\$ROSERT_HOST to the PATH environment variable.
Historical Number
22888
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21125889