thiagoralves / OpenPLC_v2

OpenPLC with the new IEC ST to C compiler
http://www.openplcproject.com
GNU General Public License v3.0
189 stars 108 forks source link

Get errors on my Pi #5

Closed dewomser closed 6 years ago

dewomser commented 6 years ago

I've tried the patch for Raspberry Pi, but but I cannot see any improvement in cycle time I use a Raspberry Pi 3 In spite of these errors, my program is compiled and running can you help ? Thank you

compiling new program... POUS.c POUS.h LOCATED_VARIABLES.h VARIABLES.csv Config0.c Config0.h Res0.c

Program compiled successfully moving files... compiling OpenPLC... Generating object files... Generating glueVars.cpp varName: IX0_2 varType: BOOL varName: __IX0_3 varType: BOOL varName: QX0_0 varType: BOOL varName: QX0_1 varType: BOOL varName: __QX0_2 varType: BOOL varName: QX0_3 varType: BOOL varName: QX0_4 varType: BOOL varName: __QX0_5 varType: BOOL varName: QX0_6 varType: BOOL varName: __MD0 varType: DWORD Compiling main program

main.cpp: In function ‘int main(int, char**)’: main.cpp:155:19: error: ‘updateBuffersIn’ was not declared in this scope updateBuffersIn(); //read input image ^ main.cpp:161:20: error: ‘updateBuffersOut’ was not declared in this scope updateBuffersOut(); //write output image ^ main.cpp:165:29: error: ‘common_ticktime__’ was not declared in this scope sleep_until(&timer_start, common_ticktime__); ^

compiled without errors