Why do I receive a linking error about mclInitializeApplication_proxy and mclmcrInitialize_proxy when I compile my driver application that calls a C++ shared library compiled using MATLAB Compiler 4.10 (R2009a)?
古いコメントを表示
I have written a MATLAB function called mytest.m that is defined as follows:
function result = mytest(V)
result = sum(sum(V));
end
I am compiling this into a DLL using the MCC command using MATLAB Compiler 4.10 (R2009a) as follows:
mcc -W cpplib:Test -T link:lib mytest.m -v
Then I write a driver application called mydriver.cpp (see below), which when compiled with the following command
mbuild mydriver.cpp Test.lib
gives me the error: ERROR: mydriver.cpp(7) : error C3861: 'mclInitializeApplication_proxy': identifier not found mydriver.cpp(51) : error C3861: 'mclmcrInitialize_proxy': identifier not found C:\PROGRA~1\MATLAB\R2009A\BIN\MEX.PL: Error: Compile of 'mydriver.cpp' failed.
However, when I compile the same application using MATLAB Compiler 4.7 (R2007b), the compilation completes successfully.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB Compiler についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!