je cherche à faire une dll windows qui soit accessible depuis python
et j'ai un problème au link
Voici la commande de link :
---------------------------
lcclnk.exe -entry inithello -dll -o hello.dll hello.obj -L
"C:\python23\libs" python23.lib
Voici les erreurs :
-------------------
Error c:\...\plugins\hello.c 14 undefined referenc e to
__imp__Py_BuildValue
Error c:\...\plugins\hello.c 46 undefined reference to __imp__Py_InitModule4
Voici le code C qui compile mais qui ne link pas :
---------------------------------------------------
static char MHello__doc__[] = "This is a simple Python C extension example";
static char Hello__doc__[] = "Prints in the console";
static char HelloString__doc__[] = "Returns message as string";