Calling C/C++ functions in a python script

C

chaosquant

I'm kind of beginner in Python, so I must ask what are probably silly
questions.

Here is my problem:

I have a static library say, a file library.lib, which can be linked to
C or C++ programs.

Now I would like to use the functions of the library in Python script,
under Win XP.

Can someone give me a simple example of how to do so?

Thanks a lot,

Jean-Claude

Please reply also to (e-mail address removed)
 
C

Carl

Ravi Teja a écrit :


Thanks for your answer. It is just what I'm trying to do.
Unfortunately, apparently I need a
"pyhton24_d.lib" to link to that does not seem to exists. Do you know a
solution for this?

Thanks a lot,

Jean-Claude

You can be build it from source! /Carl
 

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

Forum statistics

Threads
474,297
Messages
2,571,529
Members
48,240
Latest member
เพิ่มไลค์|LikePro

Latest Threads

Top