Troubleshooting
Problem
IBM Engineering Systems Design Rhapsody building generated C++ or C code fails with:
NMAKE : fatal error U1052
Symptom
Error
NMAKE : fatal error U1052
is reported when building code in Microsoft® Visual Studio environment.Cause
The path to the makefile or source code files is incorrect.
Environment
IBM Engineering Systems Design Rhapsody; Microsoft Windows; Microsoft Visual Studio.
Diagnosing The Problem
The property t with
CPP_CG::MSVC::InvokeMake
calls msvcmake.ba$makefile
as first parameter. The current path is the folder of the generated source code.
In msvcmake.bat add some
echo %cd%
commands to find out in which line the current folder is overwritten.Resolving The Problem
There are 2 options:
- You can fix the batch files, like VsVcvarsall.bat and check all nested called files.
- Save the old path in msvcmake.ba
t and then reset it.
set OLDPATH=%cd%
//call VcVarsall.bat
cd %OLDPATH%
// nmake ...
Document Location
Worldwide
[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSB2MU","label":"IBM Engineering Systems Design Rhapsody"},"ARM Category":[{"code":"a8m50000000CjTuAAK","label":"Rhapsody->Code->Generation"}],"ARM Case Number":"TS003908761","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Version(s)","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]
Product Synonym
Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
ibm16245370