I compiled my Python code with Cython and I got a .pyd
file and a .c
file.
Then I installed GCC
and I typed gcc maido.c
in my prompt.
I got 973 lines like:
C:\Users\loic\AppData\Local\Temp\ccde4A55.o:maido.c:(.text+*x*****): undefined reference to __imp_Py*****_******
And 3 last lines:
C:/Users/python/Anaconda3/Library/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/../../../../x86_64-w64-mingw32/lib/../lib/libmingw32.a(lib64_libmingw32_a-crt0_c.o): In function `main':
C:/repo/mingw-w64-crt-git/src/mingw-w64/mingw-w64-crt/crt/crt0_c.c:18: undefined reference to `WinMain'
collect2.exe: error: ld returned 1 exit status
I did some research and I saw that it was a common issue. Yet I did not find a solution to fix it.
Do I have to install anything or to add a command in the prompt ?