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)?

6 次查看(过去 30 天)
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

采纳的回答

MathWorks Support Team
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 个)

类别

Help CenterFile Exchange 中查找有关 Custom Toolchain Registration 的更多信息

产品


版本

R2010a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by