I am trying to compile various C-Functions in MATLAB Simulink using the S-function builder block and the minGW 64bit Compiler. A syntax error in the code is impossible since it is code from an ECU which is in production and running for years.
I keep getting the following error message with two of my files:
...example.obj:example.c:(.text+0x0): multiple definition of `example'
...example.obj:example.c:(.text+0x0): first defined here
The error confuses me since it is referring to the same position as the "first definition".
In the other functions it is position (.text+0x17a
).
Has any of you guys faced the same problem or any idea how to fix it? Can it be a bug of the compiler?
Greetings from Germany, Jonathan