Why do I receive unresolved symbol errors when trying to compile my MATLAB function using graphics?
Show older comments
I am trying to compile the following function:
function test_graphics_mcc( power )
x=-10:.1:10;
y=x.^power;
plot(x,y);
title(sprintf('x^%i',power));
xlabel('x');
ylabel('y');
I then compile it with the command:
mcc -t -L C -W libhg:test_graphics_mcclib -T link:lib test_graphics_mcc.m libmmfile.mlib libmwsglm.mlib
I receive the following errors: ERROR: test_graphics_mcc.obj .text: undefined reference to '_mlfNTitle' test_graphics_mcc.obj .text: undefined reference to '_mlfNXlabel' test_graphics_mcc.obj .text: undefined reference to '_mlfNYlabel'
MBUILD.BAT: Error: Link of 'test_graphics_mcclib.dll' failed.
??? Error using ==> mbuild
Unable to complete successfully
??? Error: An error occurred while shelling out to mbuild (error code = 1).
Unable to build executable (specify the -v option for more information).
Error in ==> C:\MATLAB6p5\toolbox\compiler\mcc.dll
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Compiler SDK 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!