Problem about S function builder
Mostrar comentarios más antiguos
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 comentario
Walsandro
el 10 de Ag. de 2012
Where did you include the led.h file?
Respuestas (1)
Kaustubha Govind
el 10 de Ag. de 2012
0 votos
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.
Categorías
Más información sobre Block Libraries en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!