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)?
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!