How specify a location for Microsoft Visual C++ 2010 v10.0 in Simulink Toolchain

2 ビュー (過去 30 日間)
Anthony Poulin
Anthony Poulin 2014 年 11 月 13 日
Previously I worked with Matlab R2011A (32bit) and MSVS C 2010 (32bit) as compiler, now I have to work with Matlab R2013B (32bit) and also MSVS C 2010 (32bit) as compiler.
So I have to test the compiling of S-function and the code generation of models with MSVS C 2010 (32bit).
----
My first problem (which I found a solution) is when I try to specify that my default compiler is the MSVS C 2010. I do the "mex -setup" command and then I say "yes" to: "Would you like mex to locate installed compilers [y]/n?" Then Matlab R2013B does not succeed to locate the MSVS C 2010. (With Matlab R2011A the MSVS C was located).
I find that Matlab R2013B try to locate this compiler with the path: "C:\Program Files\Microsoft Visual Studio 10.0" and mine is "C:\Program Files (x86)\Microsoft Visual Studio 10.0" Saying "no" to "Would you like mex to locate installed compilers [y]/n?" allows me to specify this path and solve the problem.
----
My second problem appears when I try to generate code from a simulink model and compile it. I see in the "Configuration Parameters -> Code Generation" that in can specify a "Toolchain" so I choose "Microsoft Visual C++ 2010 v10.0 | nmake (32-bit Windows)" but when I test this choice with the "Validate..." button a report is shown with "Toolchain is not installed."
For me, It was the same problem as my first question (like Matlab, Simulink default path doesn't include " (x86)" in the MSVS C 2010 root).
So my question is: "How can I specify to Simulink a different path for the MSVS C 2010?" And if the path is not the problem, "How can I worked with MSVS C 2010 in Simulink?"
Thank you for your answers.

回答 (0 件)

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by