phensley / python-smhasher

Python 2.x/3.x wrappers for the SMHasher library
MIT License
25 stars 12 forks source link

"too many decimal points" compilation error #3

Open thaDude opened 13 years ago

thaDude commented 13 years ago

On Python 2.6.4 (r264:75708, Oct 26 2009, 08:23:19) [MSC v.1500 32 bit (Intel)] on win32 when I try to compile with MinGW 4.5.0 the compiler complains about too many decimal points in line 100 of smhasher.cpp. PyModule_AddStringConstant(m, "__version__", MODULE_VERSION); I hardcoded the version into the file to workaround but I guess it could be fixed at setup.py level somehow.

phensley commented 10 years ago

Probably an issue with escaping the MODULE_VERSION variable on the Windows command line, leading to its being interpreted by the compiler as a bad floating point value, e.g. 0.123.4. Unfortunately I don't have a Windows/MinGW environment to verify this with.