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
Walsandro
2012년 8월 10일
Where did you include the led.h file?
답변 (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!