IBM Support

Codegen Error: "The name specified is not recognized as an internal or external command, operable program or batch file..."

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.





[{"Product":{"code":"SSSHKL","label":"Rational Rose RealTime"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"--","Platform":[{"code":"PF033","label":"Windows"}],"Version":"2001a;2001a.04.00;2002;2002.05.00;2002 Release 2;2002.05.20;2003;2003.06.00;2003.06.01","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Historical Number

22888

Document Information

Modified date:
16 June 2018

UID

swg21125889