You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have built a protobuf 3.6.1 library and add the directory to LD_LIBRARY_PATH and LIBRARY_PATH. After make, I check the link of libtengine.so by ldd, it shows:
libprotobuf.so.8 => /usr/lib64/libprotobuf.so.8
So does the Makefile assigned the location of protobuf explicitly? I checked the Makefile and the only related code is -lprotobuf thus my protobuf should be linked first?
The text was updated successfully, but these errors were encountered:
Hi, @skyday123
GCC would select the first one when it searches libraries. Please echo $LD_LIBRARY_PATH and echo LIBRARY_PATH to check if your path to protobuf 3.6.1 is at the first field in variable LD_LIBRARY_PATH and LIBRARY_PATH.
Thanks
I have built a protobuf 3.6.1 library and add the directory to LD_LIBRARY_PATH and LIBRARY_PATH. After make, I check the link of libtengine.so by ldd, it shows:
libprotobuf.so.8 => /usr/lib64/libprotobuf.so.8
So does the Makefile assigned the location of protobuf explicitly? I checked the Makefile and the only related code is -lprotobuf thus my protobuf should be linked first?
The text was updated successfully, but these errors were encountered: