Category : shared-libraries

I’m building a shared library using cmake. Here are the steps that I take, starting with building a shared library A_shared using an object library A_obj. add_library(A_obj OBJECT ${A_SRCS}) add_library(A_shared SHARED) target_link_libraries(A_shared PUBLIC A_obj) This process works. Now I wish to build another shared library that uses A_shared and its own sources. So I have: ..

Read more

I am experimenting with Python3 calling C++ Functions from a Shared-Lib. #!python3 # C : nm -gD /usr/lib/libshared.so # C++ : nm -gDC /usr/lib/libshared.so from ctypes import CDLL slibc = ‘/usr/lib/libshared.so’ hlibc = CDLL(slibc) try: hlibc.foo() except: print(".foo() not found") try: hlibc._Z3foov() except: print("._Z3foov() not found") result: .foo() not found echo from shared lib!!! So ..

Read more

There is this function which I want to implement into my code. https://docs.microsoft.com/en-us/previous-versions/iis/smooth-streaming-client/compress-function I have included the header file, but as it should be, I receive a linkage error saying that the symbol for this function is undefined. Where is the library for this function? I have searched through many search results and cannot find ..

Read more

I encoutered an issue when build Boost-required project via cl.exe on Windows which is the compiler cannot find the libboost_serialization-vc142-mt-s-x64-1_75.lib and after searching i found this is a static library and i built the Boost by default which produces the shared library(at least i suppose to be, please point me if it isn’t) libboost_serialization-vc142-mt-s-x64-1_75.lib, hence ..

Read more