I generated a C source file from my Python program with Cython. I was trying to compile it with GCC, but never succeed. The command I'm using currently is:
gcc -DSIZEOF_VOID_P=8 -DMS_WIN64 csv.c
-I"C:\Users\rudz3\AppData\Local\Programs\Python\Python39\include"
-L"C:\Users\rudz3\AppData\Local\Programs\Python\Python39\Lib"`
But I get errors about undefined references like the following:
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\rudz3\AppData\Local\Temp\ccA4Bj2u.o:csv.c:(.text+0x6e): undefined reference to \`__imp__Py_Dealloc'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/10.3.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:\Users\rudz3\AppData\Local\Temp\ccA4Bj2u.o:csv.c:(.text+0x161): undefined reference to `__imp__PyType_Lookup'