linking with

Heiko Wundram me+python at
Fri May 12 15:02:03 CEST 2006

Am Donnerstag 11 Mai 2006 18:49 schrieb imdognuts at
> "importing math" as far as I can tell right now,  invokes a shared
> library (  Now I have a shared library dependency that I dont
> want. Is there a way to get the math  functionality from a  dot a or a
> dot o, so I dont have to make my app dependent on a shared library?
> cos, sin, and pi which is what I need do not live in the libpython2.4.a
>   - I did an nm on it.... I'm on linux.

bonifats modelnine # ls -la /usr/lib/libm.a
-rw-r--r-- 1 root root 1194744 May  9 02:23 /usr/lib/libm.a
bonifats modelnine #

You have to link statically against that part of libc.

--- Heiko.

More information about the Python-list mailing list