MohammadMoawad
Greetings,
I have just installed OpenPLC Runtime on Windows which originally downloaded from autonomylogic.com
 
I made my code on the OpenPLC Editor and compiled it with no errors, then i tried to upload it on the OpenPLC Runtime and i get this compile error.
 
You can find the error as a text below the picture.

Could you please provide guidance.
 
[203128%2F9096313%2Fmceclip0]
 
cat: ethercat: No such file or directory
Generating C files...
POUS.c
POUS.h
LOCATED_VARIABLES.h
VARIABLES.csv
Config0.c
Config0.h
Res0.c
Moving Files...
Compiling for Windows
Generating object files...
In file included from Config0.c:6:
./lib/iec_std_lib.h:287:3: error: conflicting declaration ‘typedef struct tm tm’
287 | } tm;
| ^~
In file included from /usr/include/sys/time.h:414,
from ./lib/iec_std_lib.h:60:
/usr/include/time.h:37:8: note: previous declaration as ‘struct tm’
37 | struct tm
| ^~
Error compiling C files
Compilation finished with errors!
Reply 0 0
thiagoralves
 
Rebase your installation (from start menu shortcut) or just simply reinstall and it will work.
Reply 1 0
MohammadMoawad
 
Rebase your installation (from start menu shortcut) or just simply reinstall and it will work.
Thanks Alot!
Reply 0 0
Reply