python how to load multiple C libraries

chenchao at inhand.com.cn chenchao at inhand.com.cn
Wed Sep 16 06:25:57 EDT 2015


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 at inhand.com.cn
> <chenchao at 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






More information about the Python-list mailing list