python extension dynamic linking

M

Martin Landa

Hi,

I am writing Python extension in C++, in this extension I am using
methods from another Python extension. On Linux I am currently linking
my extension with used Python extension -- what is quite ugly.

gcc ... -lgdi

where gdi is a link to C++ extension imported by 'module'

I would like to avoid direct linking here.

import module # export some symbol used in my_module

import my_module

I realized that on Mac it is possible to dynamically link C++
extension using

-bundle -undefined dynamic_lookup

I wonder how to solve this problem on Linux or MS Window.

Thanks for any pointers... Martin
 

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

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,239
Members
46,827
Latest member
DMUK_Beginner

Latest Threads

Top