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

TOPIC: Function object with c code linker compile error

Function object with c code linker compile error 5 months 1 week ago #10616

Hi Claes,
Sorry to come back on this. I've created another function object and included the struc file and .o in the right places but the previous error has returned '/usr/bin/ld: cannot find -lpwrp'
The opt-file in $pwrp_exe is as I created but I expected it to be changed by BuildOptions. Is there an attribute somewhere to specify 2 function objects?
Stephen
The administrator has disabled public write access.

Function object with c code linker compile error 5 months 1 week ago #10617

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 2795
  • Karma: 0
Hi Stephen,

You only need to add the new .o file in ObjectModules in the BuildOptions object. When the directory volume is saved the .opt file should be created on $pwrp_exe. So you can check that there is a new file and that it contains you new module and no '-lpwrp'. Note the PlcProcess attribute in the BuildOptions object where you should set the name of the PlcProcess object. This name part of the opt-file name so if this is not correct the file will not be found by the linker.

/Claes
The administrator has disabled public write access.

Function object with c code linker compile error 5 months 1 week ago #10618

Hi Claes,

I had set PlcProcess object correctly.
I realise that the .opt file is generated for the project but I have been building for the development. In my case I was looking for plc_linitx_0999_plc.opt whereas the file generated is plc_hc_0001_plc.opt.
Copying the contents of the generated file to the manual file now gives a positive result in either case.

Stephen
The administrator has disabled public write access.

Function object with c code linker compile error 5 months 1 week ago #10619

  • claes
  • claes's Avatar
  • OFFLINE
  • Platinum Boarder
  • Posts: 2795
  • Karma: 0
The opt-file is generated for the node specified by the NodeConfig object where it is created. Normally you create a BuildOptions object also under NodeConfig object for the development node.

/Claes
The administrator has disabled public write access.

Function object with c code linker compile error 5 months 1 week ago #10620

Thank you Claes,
I really should read the various release notes. My project has been running (from the development node) for some years now. They say 'if it ain't broke don't fix it' but I have been having some issues with the old Ubuntu OS so decided to update and rebuild everything.
Stephen
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 2.115 seconds