Why do I receive a fatal error "Error U1052: File 'ntwin32.mak' not found" when I try to simulate my model in accelerator mode in Simulink 7.5 (R2010a)?
18 views (last 30 days)
Show older comments
MathWorks Support Team
on 27 Dec 2010
Edited: MathWorks Support Team
on 8 Apr 2015
I followed the steps mentioned in the Related Solution to set up Visual Studio on my 64-bit Windows 7 machine. When I tried to simulate a model in accelerator or rapid accelerator mode, I received the following error:
Fatal Error U1052: File 'ntwin32.mak' not found
Accepted Answer
MathWorks Support Team
on 8 Apr 2015
The reason for this error is the fact that a required file - NTWIN32.MAK is not present in the Microsoft Software Development Kit (SDK). In order to resolve the issue, re-install the SDK. The file should be found in the "Include" folder in the SDK (for example, under C:\Program Files\Microsoft SDKs\Windows\v7\Include).
Note that in order to build 64-bit binaries, the "x64 Compilers and Tools" and Microsoft Windows Software Development Kit (SDK) must both be installed. The x64 Compilers and Tools are not installed by default.
Follow steps mentioned in the Related Solution titled "How can I set up Microsoft Visual Studio 2008 Express Edition for use with MATLAB 7.7 (R2008b) on 64-bit Windows XP?" to set up 64-bit Visual Studio 2008 Express.
Without these packages, Visual Studio can build simple C/C++ applications as 32-bit binaries compile and execute as expected. However, Visual Studio cannot build the 64-bit binaries MATLAB requires.
The issue might also be solved by configuring the C++ compiler: mex -setup C++.
0 Comments
More Answers (0)
See Also
See Also
Categories
Find more on Introduction to Installation and Licensing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!