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 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
MathWorks Support Team
el 27 de Dic. de 2010
Editada: MathWorks Support Team
el 8 de Abr. de 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
Respuesta aceptada
MathWorks Support Team
el 8 de Abr. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Custom Toolchain Registration en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!