title: Resolve Compilation Errors of Simulink C-Code in matlab function: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
body: <p>Following up the Matlab/Simulink tutorial at <a href="https://de.mathworks.com/help/simulink/ug/incorporate-c-code-using-a-matlab-function-block.html" rel="nofollow noreferrer">https://de.mathworks.com/help/simulink/ug/incorporate-c-code-using-a-matlab-function-block.html</a></p>
  
  <p>A basic c-code shall be put into a matlab function block. Compiling the Simulink model leads to the following error message:</p>
  
  <blockquote>
    <p>C:\Users...\Matlab\slprj_slcc\6BPyb7AdG47rnTRBAilVFG\customcode_6BPyb7AdG47rnTRBAilVFG.c:4:9:
    error: expected '=', ',', ';', 'asm' or '<strong>attribute</strong>' before '.'
    token  doubleIt.c
             ^</p>
  </blockquote>
  
  <p>I am using the MinGW Compiler with Matlab/Simulink. Bit puzzled of where to look for error-fixing, as it SEEMS to be exactly the tutorial written down.</p>
  
  <p>Any idea of how to fix it?</p>