Skip to content Skip to sidebar Skip to footer

Libpython2.7.a Missing Many References

I'm trying to compile a cython module with -static, but I am getting a lot of errors about missing references in libpython2.7.a. For example: /usr/lib/x86_64-linux-gnu/libpytho

Solution 1:

As your package manager will show you, the library for zlib is libz.so, hence you must pass -lz.

Added by question owner: For other's reference all the linker options needed -lpython2.7 -lm -ldl -lutil -lz -pthread


Post a Comment for "Libpython2.7.a Missing Many References"