Calling C/C++ functions in a python script

2006-05-10 Thread 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 [EMAIL PROTECTED]

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: Calling C/C++ functions in a python script

2006-05-11 Thread chaosquant

Ravi Teja a écrit :

>
> For more advanced needs, take a look at some of the extending options
> available.
> http://www.suttoncourtenay.org.uk/duncan/accu/integratingpython.html

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

-- 
http://mail.python.org/mailman/listinfo/python-list