Why do I receive unresolved symbol errors when trying to compile my MATLAB function using graphics?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre MATLAB Compiler SDK en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!