Hi All,
I have developped a specific function code in my class volume defined as a "connected C Code function" in my proview release used on ARM.
I need to use this same module in my PLC so I just wanted to port a C code component from a class volume to another.
- I have redefined the class component in the class volume in term of input / output and this looks the same as the previous module.
- I have copied the C source code from my other installation to this one and compiled is successfully (corresponding .o object file is correctly generated in $pwpr_obj)
- I have added this object files in "object modules" attributes of a build option in my directory volume
- I have checked that the C code object file is correctly included in the related .opt file for my plc
Now I can build the volume without issue but the build node failed obviously due a linker error (see attchement ) but I can't find what I have missed ? Does anybody here can help me to troubleshoot my issue ?
Thanks in advance
Snarf
[EDIT] Cant succeed to add attachement so here after is the error feedback from the console:
/usr/local/pwrp/i00627/bld/x86_linux/lib/libplcf000_019_014_001.a(plc_m000_019_014_001_00194113.o): In function `M000_019_014_001_00194113_exec':
plc_m000_019_014_001_00194113.gc:(.text+0x40c): undefined reference to `RegPIFo_exec'
/usr/local/pwrp/i00627/bld/x86_linux/lib/libplcf000_019_014_001.a(plc_m000_019_014_001_00194113.o): In function `M000_019_014_001_00194113_init':
plc_m000_019_014_001_00194113.gc:(.text+0x1ec): undefined reference to `RegPIFo_init'
collect2: error: ld returned 1 exit status
%GSX-F-CCERROR, Error from c compiler or linker
Note:
The RegPIFo_init and exec function are defined in the RegPIFo.c file and can be successfully matched with a grep in the corresponding .o