btree
btree copied to clipboard
Compilation issue on Windows
Linux compilation went smoothly, but on Windows I had some issues. My setup: 64bit Windows, EPD-7.3.2 (64bit) with distutils and MinGW.
R:\btree-repo>python setup.py build
running build
running build_ext
building 'btree' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\src
D:\Copy\soft\epd7\Scripts\gcc.exe -mno-cygwin -mdll -O -Wall -DMS_WIN64 -ID:\Copy\soft\epd7\include
-ID:\Copy\soft\epd7\PC -c src/btreemodule.c -o build\temp.win-amd64-2.7\Release\src\btreemodule.o
D:\Copy\soft\epd7\Scripts\gcc.exe -mno-cygwin -mdll -O -Wall -DMS_WIN64 -ID:\Copy\soft\epd7\include
-ID:\Copy\soft\epd7\PC -c src/sorted_btree.c -o build\temp.win-amd64-2.7\Release\src\sorted_btree.o
src/sorted_btree.c:920:5: error: initializer element is not constant
src/sorted_btree.c:920:5: error: (near initialization for 'btsort_pytypeobj.ob_type')
src/sorted_btree.c:968:5: error: initializer element is not constant
src/sorted_btree.c:968:5: error: (near initialization for 'sorted_btree_iterator_type.ob_type')
Traceback (most recent call last):
File "setup.py", line 7, in