linking with math.so

I

imdognuts

hi,
My application that contains the .o's that were generated from using
"freeze" needs to import math. The point of using freeze was to make a
static application that can be shipped as a single entity (it contains
the dot o's from libpython2.4.a), vs having to worry about external
python dependencies.

"importing math" as far as I can tell right now, invokes a shared
library (math.so). 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.
thanks,
Nancy
 
H

Heiko Wundram

Am Donnerstag 11 Mai 2006 18:49 schrieb (e-mail address removed):
"importing math" as far as I can tell right now, invokes a shared
library (math.so). 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,276
Messages
2,571,384
Members
48,072
Latest member
FaustoBust

Latest Threads

Top