[Beremiz-devel] Error occurred when windows connected to linux

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Beremiz-devel] Error occurred when windows connected to linux

Soul killer

 When I run ide from windows and the target device chooses Linux, an error occurs



开始建立 C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build 生成软PLC IEC-61131 ST/IL/SFC 代码...... 正在将IEC程序编译成C代码... 正在提取位置变量...... C代码生成成功。 PLC: [CC] plc_main.c -> plc_main.o C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:1:0: warning: -fPIC ignored for target (all code is position independent) [enabled by default] C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c: In function 'PLC_GetTime': C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:125:21: error: storage size of 'tmp' isn't known C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:126:19: error: 'CLOCK_REALTIME' undeclared (first use in this function) C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:126:19: note: each undeclared identifier is reported only once for each function it appears in C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c: At top level: C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:131:23: error: unknown type name 'sigval_t' C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:137:1: error: unknown type name 'timer_t' C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c: In function 'PLC_SetTimer': C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:141:23: error: storage size of 'timerValues' isn't known C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:145:38: error: invalid application of 'sizeof' to incomplete type 'struct itimerspec' C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c: In function 'startPLC': C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:195:21: error: storage size of 'sigev' isn't known C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:204:32: error: invalid application of 'sizeof' to incomplete type 'struct sigevent' C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:206:26: error: 'SIGEV_THREAD' undeclared (first use in this function) C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:208:35: error: 'PLC_timer_notify' undeclared (first use in this function) C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c:218:19: error: 'CLOCK_REALTIME' undeclared (first use in this function) "gcc" -c "C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.c" -o "C:\Users\68580\Desktop\BeremizExamples\base_tests\first_steps\build\plc_main.o" -fPIC "-IC:\Program Files (x86)\Beremiz\matiec\lib\C" -Wno-unused-function exited with status 1 (pid 8272) plc_main.c 的C编译失败。 C构建失败。



_______________________________________________
Beremiz-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/beremiz-devel