Jul-01-2019, 10:26 PM
I'm trying to debug a runtime issue. I have a file "market.c", compiled to a shared library "market.so". It uses the glib2 call g_direct_equal extensively. When I try to load it with ctypes.CDLL, it fails with "undefined symbol: g_direct_equal".
glib2 IS in the LD_LIBRARY_PATH, and it does contain that function. Is there some sort of special magic needed to get market.so to find it? Or are libraries loaded by Python not supposed to make external calls?
I figured it out. The makefile needed "-lglib-2.0" in the line where libraries are defined.
glib2 IS in the LD_LIBRARY_PATH, and it does contain that function. Is there some sort of special magic needed to get market.so to find it? Or are libraries loaded by Python not supposed to make external calls?
I figured it out. The makefile needed "-lglib-2.0" in the line where libraries are defined.