Hello,
the Exsample "Code Generation from a MATLAB m-function" from the C6748 Teaching Rom ist not working at all. I Used CCSv4 and Matlab Release 2011b, as you suggested there. But there are just 1000 of errors at the build.
Here are the errors:
I did exactly the way described in the teaching materials! Why are these exsamples false? I need information about that PLEASE!
Has anyone tested it successfully?
Greatings, Janek Rathjen.
ERRORS:
**** Build of configuration Debug for project matlab_test_algo ****
C:\Program Files\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building file: ../main.c'
'Invoking: Compiler'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --include_path="C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --include_path="C:/Program Files/MATLAB/R2011a/extern/include" --include_path="C:/Program Files/MATLAB/R2011a/simulink/include" --diag_warning=225 --abi=coffabi --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
"C:/Program Files/MATLAB/R2011a/extern/include/emlrt.h", line 473: warning: type qualifier on return type is meaningless
"../main.c", line 9: warning: last line of file ends without a newline
'Finished building: ../main.c'
' '
'Building target: matlab_test_algo.out'
'Invoking: Linker'
"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/bin/cl6x" -mv6740 -g --diag_warning=225 --abi=coffabi -z -m"matlab_test_algo.map" --warn_sections -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/lib" -i"C:/Program Files/Texas Instruments/ccsv4/tools/compiler/c6000/include" --reread_libs --rom_model -o "matlab_test_algo.out" "./norm.obj" "./my_inverse_terminate.obj" "./my_inverse_mex.obj" "./my_inverse_initialize.obj" "./my_inverse_api.obj" "./my_inverse.obj" "./main.obj" -l"rts6740.lib"
<Linking>
warning: creating ".stack" section with default size of 0x400; use the -stack
option to change the default size
undefined first referenced
symbol in file
--------- ----------------
_emlrtAlias ./my_inverse_api.obj
_emlrtAssign ./my_inverse_api.obj
_emlrtCallMATLAB ./my_inverse.obj
_emlrtCheckBuiltInR2011a ./my_inverse_api.obj
_emlrtDestroyArray ./my_inverse_api.obj
_emlrtImportCharArray ./my_inverse.obj
_emlrtInitCharArray ./my_inverse.obj
_emlrtPopRtStack ./norm.obj
_emlrtPushRtStack ./norm.obj
_muDoubleScalarAbs ./norm.obj
_muDoubleScalarIsNaN ./norm.obj
_mxCreateCharArray_730 ./my_inverse.obj
_mxCreateDoubleScalar ./my_inverse.obj
_mxGetNaN ./norm.obj
error: unresolved symbols remain
error: errors encountered during linking; "matlab_test_algo.out" not built
>> Compilation failure
gmake: *** [matlab_test_algo.out] Error 1
gmake: Target `all' not remade because of errors.
Build complete for project matlab_test_algo