OmenXIII
Hi!
I have been putting together a quite simple program in ladder. All works well, until I try to define a few global variables to share between the two programs. No matter how I try to define the globals, I always get this error:
...\build\Global.c:16:1: error: conflicting types for 'GLOBAL__HOUR'
...\build\Global.c:16:1: note: previous declaration of 'GLOBAL__HOUR' was here
...\build\Global.c:16:1: warning: initialization from incompatible pointer type [enabled by default]
...\build\Global.c:17:1: error: conflicting types for 'GLOBAL__MINUTE'
...\build\Global.c:17:1: note: previous declaration of 'GLOBAL__MINUTE' was here
...\build\Global.c:17:1: warning: initialization from incompatible pointer type [enabled by default]
 
I am sure I'm doing a seriously beginner mistake here, but I'd appreciate a little help!
 
1.pngKépernyőkép 2023-11-01 161411.png
Reply 0 0
thiagoralves
I can't reproduce this here. Maybe there is something else in your project that is affecting this.
Reply 0 0
Reply