Getting "U1052: file 'ntwin32.mak' not found" error when trying to rebuild Client Manager retry exit.

Document ID : KB000011189
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

Having made modifications to Client Manager user exit CICMCLX.C the following error is produced when trying to build it:

...\Gen>nmake /f CCMEXIT.NT CLEAN

Microsoft (R) Program Maintenance Utility

Copyright (C) Microsoft Corporation. All rights reserved.

CCMEXIT.NT(33) : fatal error U1052: file 'ntwin32.mak' not found

 

Answer:

Run the vsvars32.bat before rebuilding the exit. Type:

...\Gen>"%vs???comntools%\vsvars32.bat"

where ??? corresponds to the compiler you have.  For instance,

vs110comntools is for VS2012 

at the command prompt before:

...\Gen>nmake /f CCMEXIT.NT CLEAN

Running the vsvars32.bat sets up the environment variables needed by Microsoft compiler.