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일)
이전 댓글 표시
MathWorks Support Team
2010년 12월 27일
편집: MathWorks Support Team
2015년 4월 8일
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
2015년 4월 8일
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
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Custom Toolchain Registration에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!