Problem about S function builder
显示 更早的评论
I had creat a new model with s function builder,and include a file led.h in it.When I built,always output the message 'Error leddemo_wrapper.c: F:\TEST\MPC5634M_MLQB80.h: 768 `char' is an illegal bit-field type ...... '
回答(1 个)
Kaustubha Govind
2012-8-10
0 个投票
Could post line 768 of F:\TEST\MPC5634M_MLQB80.h? I'm guessing that whatever compiler you have selected using "mex -setup" in MATLAB does not support "char" as a bit-field type. This page talks more about C Bit Fields, and suggests that unsigned int, signed int, or int are the only legal types for bit fields unless you're using a newer compiler.
类别
在 帮助中心 和 File Exchange 中查找有关 Block Libraries 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!