ntwin32.mak not found - R2018b w/ Visual Studio 2017 Pro
16 views (last 30 days)
Show older comments
I am building for a target in R2108b (9.5.0.944444) with Microsoft Visual C++ 2017 (C) set up as my compiler. I have the Windows SDK v7 and v10 installed. The ntwin32.mak file is located where it should be in the include folder for the v7 SDK. When building the model it eventually aborts:
### Building FullEHStrRTW_Model: .\FullEHStrRTW_Model.bat
......
C:\Dater\FullEHStrCoSim_Subsys_v00\FullEHStrRTW_Model_dyn_rtw>set "VSCMD_START_DIR=C:\Dater\FullEHStrCoSim_Subsys_v00\FullEHStrRTW_Model_dyn_rtw"
C:\Dater\FullEHStrCoSim_Subsys_v00\FullEHStrRTW_Model_dyn_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Auxiliary\Build\VCVARSALL.BAT " amd64
**********************************************************************
** Visual Studio 2017 Developer Command Prompt v15.9.15
** Copyright (c) 2017 Microsoft Corporation
**********************************************************************
[vcvarsall.bat] Environment initialized for: 'x64'
Microsoft (R) Program Maintenance Utility Version 14.16.27032.1
Copyright (C) Microsoft Corporation. All rights reserved.
C:\PROGRA~1\MATLAB\R2018b\rtw\c\tools\vctools.mak(18) : fatal error U1052: file 'ntwin32.mak' not found
Stop.
The make command returned an error of 2
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
I have reinstalled basically everything and still get stuck here. Any thoughts?
0 Comments
Answers (3)
Fangjun Jiang
on 27 Aug 2019
Run "mex -setup" and follow instructions.
5 Comments
Fangjun Jiang
on 27 Aug 2019
In your "Code Generation" configurations, select the "Automatically located an installed toolchain" or try "MVC++2017 ... nmaker (64-bit Windows)"
See Also
Categories
Find more on MATLAB Support for MinGW-w64 C/C++ Compiler 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!