creeds1337
Friends! Below is the output I get when I try to run my program in the Editor:
Start build in C:\Users\craig\OpenPLC\Test2\build
Generating SoftPLC IEC-61131 ST/IL/SFC code...
Collecting data types
Collecting POUs
Generate POU OT_Threat_Lab
Generate Config(s)
Compiling IEC Program into C code...
Extracting Located Variables...
C code generated successfully.
PLC :
[CC] plc_main.c -> plc_main.o
[CC] plc_debugger.c -> plc_debugger.o
PLC :
[CC] Config0.c -> Config0.o
[CC] Res0.c -> Res0.o
C:\Users\craig\OpenPLC\Test2\build\Res0.c:31:6: error: 'OT_THREAT_LAB' redeclared as different kind of symbol
31 | BOOL OT_THREAT_LAB;
| ^~~~~~~~~~~~~
In file included from C:\Users\craig\OpenPLC\Test2\build\Res0.c:13:
C:\Users\craig\OpenPLC\Test2\build\POUS.h:51:3: note: previous declaration of 'OT_THREAT_LAB' with type 'OT_THREAT_LAB'
51 | } OT_THREAT_LAB;
| ^~~~~~~~~~~~~
C:\Users\craig\OpenPLC\Test2\build\Res0.c:32:1: error: unknown type name 'OT_THREAT_LAB'
32 | OT_THREAT_LAB RES0__INSTANCE0;
| ^~~~~~~~~~~~~
"gcc" -c "C:\Users\craig\OpenPLC\Test2\build\Res0.c" -o "C:\Users\craig\OpenPLC\Test2\build\Res0.o" -O2 -Wno-implicit-function-declaration -Wno-int-conversion "-IC:\Users\craig\OpenPLC_Editor\matiec\lib\C" -w "-IC:\Users\craig\OpenPLC_Editor\matiec\lib\C" -w
exited with status 1 (pid 4204)
C compilation of Res0.c failed.
C Build failed.
 
Here is my Ladder Logic:
[203128%2F8907626%2Fmceclip0]
 
Any ideas?
Reply 0 0
thiagoralves
Hard to tell without seeing your full project. Most likely there must be some task, configuration or global variable misconfigured in it.
Reply 0 0
Reply