Why do I receive unresolved symbol errors when trying to compile my MATLAB function using graphics?
古いコメントを表示
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
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB Compiler SDK についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!