473,396 Members | 2,037 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

linking with math.so

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

May 11 '06 #1
1 1211
Am Donnerstag 11 Mai 2006 18:49 schrieb im*******@yahoo.com:
"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.
May 12 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Georg Teichtmeister | last post by:
Hello! We are developing a math - library for realtime applications and want to use some given mathlibraries as base(ipp, MTL, .. ). Our library is a wrapper for those and you should be able to...
7
by: Steven T. Hatton | last post by:
Is there anything that gives a good description of how source code is converted into a translation unit, then object code, and then linked. I'm particularly interested in understanding why putting...
17
by: cwdjrxyz | last post by:
Javascript has a very small math function list. However there is no reason that this list can not be extended greatly. Speed is not an issue, unless you nest complicated calculations several levels...
0
by: gasturbtec | last post by:
please help im new at access programming and i just got this project dropped in my lap because the old programmer quit. i've been doing ok so far but now i need to add code to an existing database...
2
by: Ciko | last post by:
Still not clear to me: why whe use <stdio.h> I haven't link stdio library (in linking stage) while if I use something of <math.h> I must link this library? Thanks in advance.
11
by: Sambo | last post by:
I have the following module: ------------------------------- import math def ac_add_a_ph( amp1, ph1, amp2, ph2 ): amp3 = 0.0 ph3 = 0.0 ac1 = ( 0, 0j ) ac2 = ( 0, 0j )
3
by: walkeraj | last post by:
I'm trying to compile an open source game called IVAN , and I'm able to compile it from a makefile, but not from an IDE. I have attempted to recreate the way the makefile compiles the project as...
0
by: Intios | last post by:
Hi, this is my story, I am very new with flash and xml so please forgive the stupid questions, I have a flash carousel and need to link the images to a url, I tried everything I can think about, can...
10
kiseitai2
by: kiseitai2 | last post by:
Hi everyone. My problem is tha Dev-C++ compiles perfectly fine but it fails in the linking process. I receive the linker error "multiple definitions of"; howerver, I modified the names of the...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.