Mex Compiler Doesn't Inlcude Windows SDK Includes / Libraries

1 view (last 30 days)
I am trying to compile a simulink model to run externally, however I get the following error:
fatal error: 'windows.h' file not found # include windows.h
I know the location of this file and others is in the Microsoft SDK folder: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Include
How can I make sure that when simulink builds the model, it links to the Microsoft SDK libraries?
My Matlab version is 2012b x64, with mex setup to use Microsoft Software Development Kit (SDK) 7.1 in C:\Program Files (x86)\Microsoft Visual Studio 10.0
Thanks in advance!

Answers (0)

Categories

Find more on Troubleshooting in MATLAB Compiler SDK in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!