Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Plc program link errors for x86_64_linux node.

Plc program link errors for x86_64_linux node. 2 years 1 month ago #11339

  • andrew2009
  • andrew2009's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Dear Sir,
I tried to follow the wizard file, man_gsg.pdf, man_dg.pdf, and the program of DEMO to learn the case of liquid level control. After the project was built, I found the following errors, where should I correct them?
system:Linux debianX64pwrp 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux

-- Build node levelcontrol
-- Creating bootfile for node levelcontrol
-- Plc thread generated priority 22, scantime   0.10000 s, 1 plcpgm's 

-- Plc process compiled for x86_64_linux optimized -O3 -
** Plc program link errors for x86_64_linux node plc_levelcontrol_0001_plc
/usr/bin/ld: /usr/local/pwrp/levelcontrol/bld/x86_64_linux/lib/libplcf000_001_001_002.a(plc_m000_001_001_002_00000021.o): in function `M000_001_001_002_00000021_init':
plc_m000_001_001_002_00000021.gc:(.text+0x71)

: undefined reference to `M000_001_001_002_0000048b_init'
/usr/bin/ld: plc_m000_001_001_002_00000021.gc:(.text+0x7b): undefined reference to `M000_001_001_002_00000515_init'
/usr/bin/ld: plc_m000_001_001_002_00000021.gc:(.text+0x8c): undefined reference to `M000_001_001_002_000003e3_init'
/usr/bin/ld: /usr/local/pwrp/levelcontrol/bld/x86_64_linux/lib/libplcf000_001_001_002.a(plc_m000_001_001_002_00000023.o): in function `M000_001_001_002_00000023_exec':
plc_m000_001_001_002_00000023.gc:(.text+0x53c): undefined reference to `M000_001_001_002_000003e3_exec'
/usr/bin/ld: plc_m000_001_001_002_00000023.gc:(.text+0x5ef): undefined reference to `M000_001_001_002_0000048b_exec'
collect2: error: ld returned 1 exit status
%GSX-F-CCERROR, Error from c compiler or linker
The administrator has disabled public write access.

Plc program link errors for x86_64_linux node. 2 years 1 month ago #11342

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 3170
  • Thank you received: 497
  • Karma: 133
Hi Andrew,

This is a plcpgm that is not compiled. You can set Build/Force in Options/Setting and build the node to rebuild everything.

/Claes
The administrator has disabled public write access.
The following user(s) said Thank You: andrew2009

Plc program link errors for x86_64_linux node. 2 years 1 month ago #11344

  • andrew2009
  • andrew2009's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Thank you very much for your reply,By browsing other posts in this forum,
In your case you probably need to compile all your plc programs. You can use the command 'compile/all' (in edit mode), or set build/force In Options/Settings and build the node.
I have solved this problem by choosing force build in OPTION. When I was about to close the question, I didn't expect to see the answer. thank you very much.
Go ahead and fix some other issues, and come back for help if I really can't figure it out.
Drawing a gourd in the same way, it seems that the understanding is not so profound.It would be much faster if there were some introductory tutorials.
Writing the manual is a manual job (thanks to the author for his hard work), and so is reading the manual. The novice only has to take it step by step.
Attachments:
Last Edit: 2 years 1 month ago by andrew2009.
The administrator has disabled public write access.
  • Page:
  • 1
Time to create page: 8.871 seconds