Why do I receive the LNK2001 error when trying to compile a simple MATLAB program using MATLAB Compiler 4.8 (R2008b)?
Show older comments
I have a simple MATLAB file and when I try to compile this file I receive the following error:
<SNIP>
myfile_main.obj : error LNK2001: unresolved external symbol _mclInitializeComponentInstanceWithEmbeddedCTF_proxy
myfile_main.obj: error LNK2001: unresolved external symbol _mclmcrInitialize_proxy
myfile_main.obj: error LNK2001: unresolved external symbol _mclWrite_proxy
myfile_main.obj: error LNK2001: unresolved external symbol _mclTerminateInstance_proxy
myfile_main.obj: error LNK2001: unresolved external symbol _mclTerminateApplication_proxy
myfile_main.obj: error LNK2001: unresolved external symbol _mclWaitForFiguresToDie_proxy
myfile_main.obj: error LNK2001: unresolved external symbol _mclMain_proxy
myfile_main.obj: error LNK2001: unresolved external symbol _separatePathName_proxy
myfile_main.obj: error LNK2001: unresolved external symbol _mclRunMain_proxy
myfile_main.obj: error LNK2001: unresolved external symbol _mclInitializeApplication_proxy
myfile.exe : fatal error LNK1120: 10 unresolved externals
C:\MATLAB\R2008A\BIN\MEX.PL: Error: Link of 'myfile.exe' failed.
Error: An error occurred while shelling out to mbuild (error code = 2).
Unable to build executable.
??? Error using ==> mcc
Error executing mcc, return status = 1.
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!