MEX-files Compiling Error

Hi All,
I'm using Win 7 64 bit and Matlab 2011b.
I had a problem during the setup the mex files. I downloaded SDk 7.1 as mentioned here http://www.mathworks.com/support/compilers/R2011b/win64.html
but the problem was not solved.The installation was always aborted giving a fatal error without installing x86 compiler even when i tried to download them separately it didn't work out.
Thanks

2 Comments

Amira: Thank you for sharing your solution with the community. Could you please separate out your solution as an answer and accept it, so people don't confuse this with an unresolved problem?
Done

Sign in to comment.

 Accepted Answer

This is how the problem was solved:
  1. Start insatalling SDk 7.1
  2. Uncheck c++ compiliers
  3. After SDK installation is done install this update http://www.microsoft.com/en-us/download/details.aspx?id=4422
  4. Open SDK cmd prompt Start >> All programs >> Microsoft Windows SDK 7.1 >> Microsoft SDK cmd prompt
  5. Change current directory to bin folder
  6. Build the required enviromental variables SetEnv.cmd/x64 /debug
you should get the following
Setting SDK enviroment realtive to C:\Program files\Microsoft SDKs\Windows\v7.1\.
Return to Matlab to setup mex files

More Answers (0)

Categories

Products

Community Treasure Hunt

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

Start Hunting!