Created
January 25, 2016 01:21
-
-
Save mingwandroid/7bba87e614f6c954f604 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cat test.c | |
#include "E:/python34/include/python.h" | |
int DLLMain() | |
{ | |
PyObject * test = Py_None; | |
return 0; | |
} | |
$ PATH=/mingw64/bin:$PATH gcc -shared -L/e/Python34/libs/ -lpython34 -c test.c -o test.dll | |
$ nm test.dll | |
0000000000000000 b .bss | |
0000000000000000 d .data | |
0000000000000000 p .pdata | |
0000000000000000 r .rdata$zzz | |
0000000000000000 t .text | |
0000000000000000 r .xdata | |
U __imp__Py_NoneStruct | |
0000000000000000 T DLLMain |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
tried the following: (used
#include <python.h>
an got the correct the path to the include files)and now
nm
output it looks likeNevertheless, linking aginst the MS import library doesn't work as it should.