I encountered below error while I was trying to build my exe 'mktrack'
hidden symbol `_PGOPTI_Prof_Div_64_VP' in /home/gaurav/libs/lib64/libipgo.a(pgopti.o) is referenced by DSO
Even though the symbol is present in libipgo.a and not hidden when I checked:
bash-4.1$ nm libipgo.a | grep _PGOPTI_Prof_Div_64_VP 0000000000000ea0 T _PGOPTI_Prof_Div_64_VP
My library name is libovp20.lib and I am encountering err while linking my library with executable 'mktrack'
libovp20.so was created with following command:
gcc -o /home/gaurav/libs/lib64/libovp20.so -shared -z noexecstack -Wl,--disable-new-dtags -L/home/gaurav/libs/lib64/ --whole-archive /home/gaurav/libs/lib64/libovp20.a -Wl,--no-whole-archive <other_libs> -lirc -lipgo bash-4.1$ nm libovp20.so | grep _PGOPTI_Prof_Div_64_VP 0000000000597650 t _PGOPTI_Prof_Div_64_VP
I am encountering error while trying to execute below command:
/usr/local/packages/icc_remote/188.8.131.52/bin/icc -o /home/gaurav/bin/mktrack -m64 -z noexecstack -Wl,--disable-new-dtags -L/home/gaurav/libs/lib64/ -lovp20 -lrt -lresolv -ldl -lm
Please help. I am stuck
libipgo.a placed at the location: /home/gaurav/libs/lib64/ is same as placed in /usr/local/packages/icc_remote/184.108.40.206/lib/intel64/