The compilation phase in my openplc procress exits with the errors shown below.
It seems to be related to the Res0.c file compiled during the arduino compilation process.
In file included from C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\Config0.c:10:0:
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:297:0: error: unterminated argument list invoking macro "__DECLARE_VAR"
__DECLARE_VAR(BOOL
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:1:0: error: unterminated #ifndef
#ifndef __POUS_H
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:297:3: error: expected specifier-qualifier-list before '__DECLARE_VAR'
__DECLARE_VAR(BOOL
^~~~~~~~~~~~~
In file included from C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.c:1:0:
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:297:0: error: unterminated argument list invoking macro "__DECLARE_VAR"
__DECLARE_VAR(BOOL
In file included from C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.c:1:0:
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:1:0: error: unterminated #ifndef
#ifndef __POUS_H
In file included from C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.c:1:0:
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:297:3: error: unknown type name '__DECLARE_VAR'
__DECLARE_VAR(BOOL
^~~~~~~~~~~~~
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.c:4:6: error: expected ':', ',', ';', '}' or '__attribute__' before 'CLIMATICA_EST'
BOOL CLIMATICA_EST(
^~~~~~~~~~~~~
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.c:1012:0: error: unterminated argument list invoking macro "__SET_EXTERNAL"
__SET_EXTERNAL(data__->,CLIM_CALC
In file included from C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\Res0.c:13:0:
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:297:0: error: unterminated argument list invoking macro "__DECLARE_VAR"
__DECLARE_VAR(BOOL
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:1:0: error: unterminated #ifndef
#ifndef __POUS_H
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:297:3: error: unknown type name '__DECLARE_VAR'
__DECLARE_VAR(BOOL
^~~~~~~~~~~~~
In file included from editor\arduino\src\lib/iec_std_FB.h:35:0,
from editor\arduino\src\lib/iec_std_lib.h:746,
from C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\Res0.c:6:
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\Res0.c:16:23: error: expected ':', ',', ';', '}' or '__attribute__' before 'RES0__CLOUD_OK'
__DECLARE_GLOBAL(BOOL,RES0,CLOUD_OK)
^
editor\arduino\src\lib/accessor.h:10:19: note: in definition of macro '__DECLARE_GLOBAL'
__IEC_##type##_t domain##__##name;\
^~~~~~
In file included from C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\Res0.c:69:0:
C:\Users\Francesco Manghi\OpenPLC_Editor\editor\arduino\src\POUS.h:1:0: error: unterminated #ifndef
#ifndef __POUS_H
Error during build: exit status 1
COMPILATION FAILED!
File Res0 found as attachment.
Is there a reason for this behaviour?
Thanks a lot,
best regards.