dynamically loaded libraries

M

mhearne808

I have a question about how dynamically loaded C++ modules work, which
I will phrase as a hypothetical scenario involving the Numeric module.
Please understand that I don't really care about Numeric per se, it's
just a useful example of a module that defines a generally useful data
type.

Let's say I want to create a C++ Python extension module that has
methods accepting the Numeric array type as input, and also create
these arrays as output.

In order to make this work, do I have to statically link against the
Numeric source, or do I only have to include the headers, under the
assumption (??) that the Numeric functionality will be available
because the Python executable has dynamically loaded it?

Thanks!

Mike
 
D

Diez B. Roggisch

mhearne808 said:
I have a question about how dynamically loaded C++ modules work, which
I will phrase as a hypothetical scenario involving the Numeric module.
Please understand that I don't really care about Numeric per se, it's
just a useful example of a module that defines a generally useful data
type.

Let's say I want to create a C++ Python extension module that has
methods accepting the Numeric array type as input, and also create
these arrays as output.

In order to make this work, do I have to statically link against the
Numeric source, or do I only have to include the headers, under the
assumption (??) that the Numeric functionality will be available
because the Python executable has dynamically loaded it?

You'll only need the dynamic libs. Of course they must be available on link-
as well as run-time.


Diez
 

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,755
Messages
2,569,537
Members
45,020
Latest member
GenesisGai

Latest Threads

Top