epics-base / pvDataCPP

pvDataCPP is an EPICS V4 C++ module
https://epics-base.github.io/pvDataCPP/
Other
6 stars 16 forks source link

link with rt when using clock_gettime() #57

Closed dirk-zimoch closed 6 years ago

dirk-zimoch commented 6 years ago

Fixes linker error: /opt/eldk-5.2/powerpc-e500v2/sysroots/i686-eldk-linux/usr/bin/ppce500v2-linux-gnuspe/../../libexec/ppce500v2-linux-gnuspe/gcc/powerpc-linux-gnuspe/4.6.4/ld: performstruct.o: undefined reference to symbol 'clock_gettime@@GLIBC_2.2' /opt/eldk-5.2/powerpc-e500v2/sysroots/i686-eldk-linux/usr/bin/ppce500v2-linux-gnuspe/../../libexec/ppce500v2-linux-gnuspe/gcc/powerpc-linux-gnuspe/4.6.4/ld: note: 'clock_gettime@@GLIBC_2.2' is defined in DSO /opt/eldk-5.2/powerpc-e500v2/sysroots/ppce500v2-linux-gnuspe/lib/librt.so.1 so try adding it to the linker command line

mdavidsaver commented 6 years ago

Thanks.