16 | | TBD |
| 16 | In order to compile MEX, we recommend installing [http://www.microsoft.com/visualstudio/eng/products/visual-studio-2010-express Microsoft Visual C++ Express 2010] (This tutorial should work with Microsoft Visual C++ Express 2012 but might have minor differences) and the [http://www.microsoft.com/en-us/download/details.aspx?id=8279 Windows SDK (version 7.1)]. For additional tool installations, please refer to the [wiki:GettingStarted/WARPv3/Tools Recommended Tools for WARP v3]. |
| 17 | |
| 18 | Please follow the procedures from Microsoft for downloading and installing Microsoft Visual C++ Express 2010 and the Windows SDK. |
| 19 | |
| 20 | One common error that we have seen is //Return Code 5100//. This indicates that there were existing installs of redistributable Microsoft Visual C++ (for example, MATLAB will install a redistributable Microsoft Visual C++ program as part of its install) and that the installation could not proceed. In that case, you need to uninstall existing Visual C++ redistributable installations. You can see a good summary of the solution: |
| 21 | |
| 22 | http://stackoverflow.com/questions/1901279/windows-7-sdk-installation-failure |
| 23 | |
| 24 | For example, you can see that on one of our machines, there are many distributions of Microsoft Visual C++ installed on the computer as part of installs from other programs (see "Control Panel" -> "Programs and Features"): |
| 25 | |
| 26 | [[Image(Tool_Install_Issue_Add_Remove_Programs.PNG, 700px)]] |
| 27 | |
| 28 | which can lead to issues when trying to install the Windows SDK. |
| 29 | |
146 | | Once you attach to the process, you should then be able to debug your code (ie set breakpoints, etc) using the standard Visual C++ Express 2010 methods. For example, once you have set a breakpoint, then you can run your code within MATLAB and have the program halt at the breakpoint to see the various variables and other watchpoints: |
| 159 | Once you attach to the process, you should then be able to debug your code (ie set breakpoints, etc) using the standard Visual C++ Express 2010 methods. [[BR]] |
| 160 | |
| 161 | For example, once you have set a breakpoint, then you can run your code within MATLAB and have the program halt at the breakpoint to see the various variables and other watchpoints: |