matlab生成com错误,代码生成提示的错误怎么解决?

配置好了之后,在编译生成代码的时候提示以下问题,应该怎么解决?

### Generating code into build folder: E:\M\untitled_r_ticcs

### Invoking Target Language Compiler on untitled_r.rtw

### Using System Target File: E:\M\toolbox\idelink\foundation\pjtgenerator\rtw\idelink_ert.tlc

### Loading TLC function libraries

Warning:  The data type "int8" uses a word size that is not available on the intended target.

Fixed-point signals using this data type will be put inside a larger word or multi words.  When used,

extra software will be generated to force this larger word or multi words to emulate a smaller

word.  This emulation is helpful when your prototype target and your final

production target are not the same.  If the smaller word size does NOT exist

on the final production target, then consider increasing the word size to

one that is supported.

Warning:  The data type "uint8" uses a word size that is not available on the intended target.

Warning:  The data type "boolean" uses a word size that is not available on the intended target.

.

### Initial pass through model to cache user defined code

### Generating code for S Function : /State-Space

### Caching model source code

### Writing header file untitled_r.h

### Writing header file untitled_r_types.h

### Writing header file untitled_r_private.h

### Writing header file rtwtypes.h

.

### Writing header file rtGetInf.h

### Writing source file rtGetInf.c

### Writing header file rtGetNaN.h

### Writing source file rtGetNaN.c

### Writing header file rt_nonfinite.h

.

### Writing source file rt_nonfinite.c

### Writing source file untitled_r.c

### Writing source file untitled_r_data.c

### Writing source file untitled_r_main.c

### TLC code generation complete.

...### Creating HTML report file untitled_r_codegen_rpt.html

### Creating makefile: E:\M\untitled_r_ticcs\untitled_r.mk

### Makefile creation done.

### Building makefile...

The call to idelink_ert_make_rtw_hook, during the exit hook generated the following error:

Error while building the project.

The build process will terminate as a result.

Caused by:

Error while building the project.

The build failed with the following message: "E:/ccsv4/tools/compiler/c2000/bin/cl2000" -I"E:/M/texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/inc" -I"E:/M/untitled_r_ticcs" -I"E:/M" -I"E:" -I"E:/M/extern/include" -I"E:/M/simulink/include" -I"E:/M/rtw/c/src" -I"E:/M/rtw/c/src/ext_mode/common" -I"E:/M/rtw/c/ert" -I"E:/M/toolbox/physmod/powersys/facts/facts" -I"E:/M/toolbox/physmod/powersys/DR/DR" -D"__TICCSC__" -D"RT" -D"USE_RTMODEL" -ml -v28 --float_support=fpu32 -D"MODEL=untitled_r" -D"NUMST=2" -D"NCSTATES=0" -D"HAVESTDIO=" -D"ONESTEPFCN=1" -D"TERMFCN=1" -D"MAT_FILE=0" -D"MULTI_INSTANCE_CODE=0" -D"INTEGER_CODE=0" -D"MT=0" -D"CLASSIC_INTERFACE=0" -D"ALLOCATIONFCN=0" -D"TID01EQ=0" -I"E:\ccsv4\tools\compiler\c2000\include" -fr"./derived/" ./DSP2833x_ADC_cal.asm ./DSP2833x_CodeStartBranch.asm ./DSP2833x_CpuTimers.c ./DSP2833x_DMA.c ./DSP2833x_DefaultIsr.c ./DSP2833x_GlobalVariableDefs.c ./DSP2833x_PieCtrl.c ./DSP2833x_PieVect.c ./DSP2833x_SysCtrl.c ./DSP2833x_usDelay.asm ./MW_c28xx_board.c ./MW_c28xx_csl.c ./rtGetInf.c ./rtGetNaN.c ./rt_nonfinite.c ./untitled_r.c ./untitled_r_data.c ./untitled_r_main.c

[DSP2833x_ADC_cal.asm]

[DSP2833x_CodeStartBranch.asm]

[DSP2833x_CpuTimers.c]

[DSP2833x_DMA.c]

[DSP2833x_DefaultIsr.c]

[DSP2833x_GlobalVariableDefs.c]

[DSP2833x_PieCtrl.c]

[DSP2833x_PieVect.c]

[DSP2833x_SysCtrl.c]

[DSP2833x_usDelay.asm]

[MW_c28xx_board.c]

[MW_c28xx_csl.c]

[rtGetInf.c]

[rtGetNaN.c]

[rt_nonfinite.c]

[untitled_r.c]

"./untitled_r.c", line 305: warning: variable "yswitch" was declared but never referenced

"./untitled_r.c", line 306: warning: variable "switchTypes" was declared but never referenced

[untitled_r_data.c]

[untitled_r_main.c]

"E:/ccsv4/tools/compiler/c2000/bin/cl2000" -z -I"E:/M/lib" -l"rts2800_fpu32.lib" -c -x -m"untitled_r.map" -stack0x200 -o ./CustomMW/untitled_r.out ./derived/DSP2833x_ADC_cal.obj ./derived/DSP2833x_CodeStartBranch.obj ./derived/DSP2833x_CpuTimers.obj ./derived/DSP2833x_DMA.obj ./derived/DSP2833x_DefaultIsr.obj ./derived/DSP2833x_GlobalVariableDefs.obj ./derived/DSP2833x_PieCtrl.obj ./derived/DSP2833x_PieVect.obj ./derived/DSP2833x_SysCtrl.obj ./derived/DSP2833x_usDelay.obj ./derived/MW_c28xx_board.obj ./derived/MW_c28xx_csl.obj ./derived/rtGetInf.obj ./derived/rtGetNaN.obj ./derived/rt_nonfinite.obj ./derived/untitled_r.obj ./derived/untitled_r_data.obj ./derived/untitled_r_main.obj ./untitled_r.cmd ../texasinstrumentsc2000/toolbox/target/supportpackages/tic2000/rtlib/IQmath_fpu32.lib

error: cannot find file "rts2800_fpu32.lib"

warning: automatic RTS selection:  attempt to automatically link in index

library "libc.a" failed; file not found

warning: entry-point symbol "_c_int00" undefined

undefined    first referenced

symbol          in file

---------    ----------------

FS$$DIV      ./derived/untitled_r.obj

___memcpy_ff ./derived/untitled_r.obj

_calloc      ./derived/untitled_r.obj

_cos         ./derived/untitled_r.obj

_free        ./derived/untitled_r.obj

_memset      ./derived/untitled_r.obj

_modf        ./derived/untitled_r.obj

_sin         ./derived/untitled_r.obj

error: unresolved symbols remain

error: errors encountered during linking; "./CustomMW/untitled_r.out" not

built

>> Compilation failure

gmake: *** [CustomMW/untitled_r.out] Error 1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值