Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #96671

Re: python how to load multiple C libraries

Path csiph.com!goblin1!goblin.stu.neva.ru!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <chenchao@inhand.com.cn>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.003
X-Spam-Evidence '*H*': 0.99; '*S*': 0.00; '16,': 0.03; 'dependency': 0.07; 'problem?': 0.07; 'libraries.': 0.09; 'python': 0.10; 'subject:python': 0.14; 'wed,': 0.15; '7:35': 0.16; 'compilers': 0.16; 'hi:': 0.16; 'wrote:': 0.16; 'circular': 0.18; 'load': 0.20; '2015': 0.20; 'ctypes': 0.22; 'libraries': 0.22; 'sep': 0.22; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; 'chris': 0.26; 'them?': 0.29; 'that.': 0.30; 'convention': 0.30; 'anybody': 0.32; 'this?': 0.34; 'handle': 0.34; 'so,': 0.35; 'files,': 0.35; 'problem.': 0.35; 'but': 0.36; 'there': 0.36; 'depends': 0.36; 'to:addr:python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'received:10': 0.37; 'two': 0.37; 'files': 0.38; 'to:addr:python.org': 0.40; 'chrisa': 0.84; 'received:qq.com': 0.84
X-QQ-mid Yesmtp20t1442399158t225t2958
X-QQ-SSF 00400000000000F0F622B00A0000000
X-QQ-FEAT NviVax2pLsUPnCm7YklJuC1vj1H6GMYM8I0ilg+fmSkWtCJikopY+oCbCBq8r WbnOaujdLKAhlY0SDCtxP7d1jjBZHKfdLMyGsOAhrxf6u0XGeVRQmKjHa/hIPjt3u/dsuYA S2dIWBRjZzgA5PnbuTVi7gFhdvvg7SHisE3FZAPzsS9IYDaoTzezMhoPkkbyHLOphc+mWis 0vgJcmLmFvoc9D8nFUWdWA47bFzeyXSdyiPe4xPRPNBg1K49pBUhLuJus6zMo9Krxkb+mIP cOdQ==
X-QQ-GoodBg 0
Subject Re: python how to load multiple C libraries
To python-list@python.org
References <55F937D6.6040104@inhand.com.cn> <CAPTjJmre4zggo1=H42uYtoxeN=RCV+VcGqg8wN7a31fx4NC4nA@mail.gmail.com>
From "chenchao@inhand.com.cn" <chenchao@inhand.com.cn>
Date Wed, 16 Sep 2015 18:25:57 +0800
User-Agent Mozilla/5.0 (X11; Linux i686; rv:38.0) Gecko/20100101 Thunderbird/38.2.0
MIME-Version 1.0
In-Reply-To <CAPTjJmre4zggo1=H42uYtoxeN=RCV+VcGqg8wN7a31fx4NC4nA@mail.gmail.com>
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-QQ-SENDSIZE 520
X-QQ-Bgrelay 1
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.630.1442399184.8327.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1442399184 news.xs4all.nl 23790 [2001:888:2000:d::a6]:34276
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:96671

Show key headers only | View raw


hi:
    Most current compilers and linkers will search all object files, 
regard-less of order, but since not all compilers do this it is best to 
follow the
convention of ordering object files from left to right . Python do that. 
So, is there anybody know how to solve the follow problem?

On 09/16/2015 05:41 PM, Chris Angelico wrote:
> On Wed, Sep 16, 2015 at 7:35 PM, chenchao@inhand.com.cn
> <chenchao@inhand.com.cn> wrote:
>> I encountered a problem. I use ctypes load multiple C  libraries, but the
>> libraries have dependence each other.So, how can i load these libraries. For
>> example, I have two libraries:A、B, but A depends on B, B depends on A. So
>> how do I load them? Is there anybody know how to do it?
> How are the libraries built? A circular dependency is always a
> problem. How would a C program handle this?
>
> ChrisA


Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: python how to load multiple C libraries "chenchao@inhand.com.cn" <chenchao@inhand.com.cn> - 2015-09-16 18:25 +0800

csiph-web