ntwin32.mak file not found when using Simulink Coder

4 views (last 30 days)
Hi, I am using Matlab/Simulink with the Simulink Coder and Vector Canoe AddOn. When building the model I get the following error:
"C:\PROGRA~1\MATLAB\R2015a\rtw\c\tools\vctools.mak(18) : fatal error U1052: file 'ntwin32.mak' not found"
There exists such file in:
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Include\NtWin32.Mak"
Is it possible that the file is not visible to Matlab? Is the case important?
Best Regards,
Clement
  2 Comments
Walter Roberson
Walter Roberson on 19 Nov 2015
Have you used
mex -setup
and if so are you configured to use the Windows 7.1 SDK?
Clement
Clement on 20 Nov 2015
Hi Walter, Yes of course I have used max -setup and it seems to be successful:
MEX configured to use 'Microsoft Windows SDK 7.1 (C)' for C language compilation
.
Warning: The MATLAB C and Fortran API has changed to support MATLAB
variables with more than 2^32-1 elements. In the near future
you will be required to update your code to utilize the
new API. You can find more information about this at:
http://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-file
s-to-use-64-bit-api.html.
To choose a different language, execute one from the following:
mex -setup C++
mex -setup FORTRAN
Regards,
Clement

Sign in to comment.

Answers (1)

Walter Roberson
Walter Roberson on 19 Nov 2015
It is unlikely that you are encountering difficulties due to the difference in case of the filenames.
"Actually it depends of the software that accesses the FS.
If it uses WIN32 API (which 99.9% of the software does) it will be case-insensitive whatever you do. All built-in software in Windows (like Explorer, command prompt, Internet Explorer and etc.) and all consumer software out there uses WIN32 and is always case-insensitive.
NFS Service, Java and some others are POSIX and they will obey the 'obcaseinsensitive' registry setting."

Categories

Find more on Embedded Coder 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!