Why am I receiving syntax errors for a file that I know can compile fine?
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I received this error when running my MatLab model that uses C-caller functions. I know that this code works and it compiles in VSCode. I am fairly certain that it's because of MatLab configurations but I am very much brand new with MatLabs so I would not know where to look for in the settings. I do have the model configurations to link to the right custom code. I have tried playing with the spacing in the header file and tried changing the language to C++ like how the error suggested.
0 comentarios
Respuestas (1)
Walter Roberson
el 14 de Feb. de 2025
You could try using
typedef struct SOMENAMEGOESHERE {
...
} FUNCTION_1_REQUEST_T;
instead of
typedef struct {
...
} FUNCTION_1_REQUEST_T;
Ver también
Categorías
Más información sobre C Shared Library Integration 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!