Following the steps here and the Cython Rectangle example, I am trying to compile it manually with gcc 64 bits on windows. The three steps mentioned in the link are (I adapted step 3 for windows, but it could be wrong):
- cython --cplus rect.pyx -> rect.cpp
- gcc -c Rectangle.cpp -> Rectangle.o
- gcc -shared -fPIC -IC:\Users\python37\include rect.cpp Rectangle.o -lstdc++ -o -rect.so
But when doing step 3, I get a list of messages of the type of
C:\Users\xxxx\AppData\Local\Temp\ccu0rCb7.o:rect.cpp:(.text+0x1b8): undefined reference to __imp_PyDict_Size
C:\Users\xxxx\AppData\Local\Temp\ccu0rCb7.o:rect.cpp:(.text+0x222): undefined reference to __imp__PyDict_GetItem_KnownHash
Any idea how to solve this?