1

Visual Studio 2010 Professional コンパイラを使用して、MATLAB で 64 ビット アプリケーションをコンパイルして実行しようとしています。Visual Studio x64 コマンド プロンプトから matlab を起動すると、問題なくプログラムを実行できるため、プログラムとコンパイラの両方が適切に動作することがわかっています。

mex -setup を実行し、次のように 2010 コンパイラを選択しました。

mex -setup Please choose your compiler for building external interface (MEX) files:

Would you like mex to locate installed compilers [y]/n? y

Select a compiler: 
  [1] Microsoft Visual C++ 2010 in C:\Program Files (x86)\Microsoft Visual Studio 10.0  
  [2] Microsoft Visual C++ 2008 Express in C:\Program Files (x86)\Microsoft Visual Studio 9.0   
  [0] None

Compiler: 1

Please verify your choices:

Compiler: Microsoft Visual C++ 2010 Location: C:\Program Files (x86)\Microsoft Visual Studio 10.0

Are these correct [y]/n? y

************************************************************************* Warning: MEX-files generated using Microsoft Visual C++ 2010 require that Microsoft Visual Studio 2010 run-time libraries be available on the computer they are run on. If you plan to redistribute your MEX-files to other MATLAB users, be sure that they have the run-time libraries. *************************************************************************

Trying to update options file: C:\Users\OEM\AppData\Roaming\MathWorks\MATLAB\R2010a\mexopts.bat From template: C:\PROGRA~1\MATLAB\R2010a\bin\win64\mexopts\msvc100opts.bat

Done . . .

残念ながら、これでは 64 ビット アプリケーションを実行できないようです。cl プリプロセッサ コマンドに関するエラーが表示されます。これは、64 ビット コンパイラを使用していないことを示しています。Visual Studio 2010 コマンド ラインから Matlab を実行する必要がないように、これを構成する方法を知っている人はいますか? これについて何か助けていただければ幸いです。

よろしくお願いします!

ドン

4

0 に答える 0