Embedding python with lcc-win32
decay
ae98096 at aero.iitm.ernet.in
Sun Feb 17 06:39:53 EST 2002
I got my simple python-embedded-in-C program (read below) to compile
with lcc-win32 by doing the following:
I used buildlib with the following file as argument:
-----------------
python21.dll
__imp__PyArg_Parse PyArg_Parse
__imp__PyArg_ParseTuple PyArg_ParseTuple
...
-----------------
The program now compiles, but when I execute it, it "caused an error
in <unknown>". Can anyone tell me what's happening?
yours,
Ashok.
ae98096 at aero.iitm.ernet.in (decay) wrote in message news:<335764c1.0202161031.425dd81a at posting.google.com>...
> Hello.
>
> I've been trying to embed python in a C program. I use the lcc-win32
> compiler system. I made an import library from python21.dll using
> implib. But when I link a simple program, I get "Undefined reference
> to __imp__Py_Initialize" in test.c. I suppose its got to do with
> making the import library. Can anyone please enlighten me?
>
> Thanks,
> Ashok.
More information about the Python-list
mailing list