Compiling Simulink with C code containing typeof / avoiding typeof command
-
Hello all,
we want to compile a simulink model with realtime workshop to produce a standalone tool for PCs.
The simulink model contains a DLL, based on a piece of C code.
The C code contains the "typeof" command, so we have to use a GNU compiler to compile the C code, because the ANSI C compiler of Mathworks is not able to handle the typeof command.
Our problme: Realtime workshop can not compile DLLs which are produced by the GNU compiler.
Does anyone know a solution, maybe
- compiler switches for the GNU compiler
- another compiler, which is compatible to Realtime workshop AND typeof
- a possibility to change the c code to avoid typeof
- ...
?Best Regards
Alex