Undefined references when running a model reference in accelerator mode
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
I built a very simple model and created a model reference for it. When I try to simulate the model reference in accelerator mode, it will not link. I get the following errors:
gcc -c -ansi -pedantic -Wno-long-long -fwrapv -fPIC -O0 -fPIC -DNDEBUG -DMODEL=mini_model -DNUMST=1 -DNCSTATES=0 -DUNIX -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DMDL_REF_SIM_TGT=1 -I. -I../../.. -I/usr/local/MATLAB/R2014b/extern/include -I/usr/local/MATLAB/R2014b/simulink/include -I/usr/local/MATLAB/R2014b/rtw/c/src -I/usr/local/MATLAB/R2014b/rtw/c/src/ext_mode/common -I/home/andrew/slprj/sim/mini_model -I/home/andrew -I../../../slprj/sim/_sharedutils "mini_model.c"
gcc -c -ansi -pedantic -Wno-long-long -fwrapv -fPIC -O0 -fPIC -DNDEBUG -DMODEL=mini_model -DNUMST=1 -DNCSTATES=0 -DUNIX -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DMDL_REF_SIM_TGT=1 -I. -I../../.. -I/usr/local/MATLAB/R2014b/extern/include -I/usr/local/MATLAB/R2014b/simulink/include -I/usr/local/MATLAB/R2014b/rtw/c/src -I/usr/local/MATLAB/R2014b/rtw/c/src/ext_mode/common -I/home/andrew/slprj/sim/mini_model -I/home/andrew -I../../../slprj/sim/_sharedutils "mini_model_capi.c"
ar ruvs mini_modellib.a mini_model.o mini_model_capi.o
ar: creating mini_modellib.a
a - mini_model.o
a - mini_model_capi.o
### Created mini_modellib.a
/usr/local/MATLAB/R2014b/bin/mex -MATLAB_ARCH=glnxa64 COPTIMFLAGS="-ansi -pedantic -Wno-long-long -fwrapv -fPIC -O0 -fPIC -DNDEBUG" -DMODEL=mini_model -DNUMST=1 -DNCSTATES=0 -DUNIX -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -I. -I../../.. -I/usr/local/MATLAB/R2014b/extern/include -I/usr/local/MATLAB/R2014b/simulink/include -I/usr/local/MATLAB/R2014b/rtw/c/src -I/usr/local/MATLAB/R2014b/rtw/c/src/ext_mode/common -I/home/andrew/slprj/sim/mini_model -I/home/andrew -I../../../slprj/sim/_sharedutils -DMDL_REF_SIM_TGT=1 mini_model_msf.c LINKLIBS='mini_modellib.a -Wl,--start-group -Wl,--end-group ../../../slprj/sim/_sharedutils/rtwshared.a $LINKLIBS' -outdir ../../.. -silent -L/usr/local/MATLAB/R2014b/bin/glnxa64 -lfixedpoint -L/usr/local/MATLAB/R2014b/bin/glnxa64 -lmwipp -L/usr/local/MATLAB/R2014b/bin/glnxa64 -lmwmathutil -lmwsimulink -lmwsl_fileio -lmwsigstream -lmwsl_log_load_blocks -lmwsl_AsyncioQueue
Warning: Legacy MEX infrastructure is provided for compatibility; it will be removed in a future version of MATLAB. For more information, consult the MEX release notes http://www.mathworks.com/help/matlab/release-notes.html.
../../../mini_model_msf.o: In function `mdlInitializeSizes':
mini_model_msf.c:(.text+0x77): undefined reference to `rt_InitInfAndNaN'
mini_model_msf.c:(.text+0xb5): undefined reference to `rtInf'
mini_model_msf.c:(.text+0x77a): undefined reference to `rtMinusInf'
mini_model_msf.c:(.text+0x788): undefined reference to `rtInf'
mini_model_msf.c:(.text+0x828): undefined reference to `rtMinusInf'
mini_model_msf.c:(.text+0x836): undefined reference to `rtInf'
mini_model_msf.c:(.text+0xd84): undefined reference to `mr_mini_model_MdlInfoRegFcn'
../../../mini_model_msf.o: In function `mdlStart':
mini_model_msf.c:(.text+0x11e5): undefined reference to `hccjfz11o0'
../../../mini_model_msf.o: In function `mdlOutputs':
mini_model_msf.c:(.text+0x12c4): undefined reference to `mini_model'
collect2: error: ld returned 1 exit status
mex: link of ' "../../../mini_model_msf.mexa64"' failed.
gmake: *** [../../../mini_model_msf.mexa64] Error 255
### Build procedure for model: 'mini_model' aborted due to an error.
I'm using 2014b on Ubuntu.
0 comentarios
Respuestas (0)
Ver también
Categorías
Más información sobre Multicore Processor Targets en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!