rudimeier / jcc Goto Github PK
View Code? Open in Web Editor NEWfork of pylucene/jcc for python3 support
License: Other
fork of pylucene/jcc for python3 support
License: Other
Hi,
Tried to compile this version of jcc but get a error:
jcc/sources/jcc.cpp(197): warning C4244: 'initializing': conversion from 'Py_hash_t' to 'long', possible loss of data
jcc/sources/jcc.cpp(199): error C2131: expression did not evaluate to a constant
jcc/sources/jcc.cpp(199): note: failure was caused by non-constant arguments or reference to a non-constant symbol
jcc/sources/jcc.cpp(199): note: see usage of 'hexdig'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64\cl.exe' failed with exit status 2
the section is:
static PyObject *t_jccenv_strhash(PyObject *self, PyObject *arg)
{
long hash = PyObject_Hash(arg);
size_t hexdig = sizeof(long) * 2;
char buffer[hexdig + 1]; # Line 199
sprintf(buffer, "%0*lx", (int)hexdig, (unsigned long)hash);
return PyUnicode_FromStringAndSize(buffer, hexdig);
}
I'm on windows, anaconda and MSVS v14 (Python 3.6)
I'm not so familiar with C++ but found these references:
http://stackoverflow.com/questions/33625180/strange-error-c2131-expression-did-not-evaluate-to-a-constant-in-vc-2015/33625383
Somehow the compiler don't get that it is a static value i think..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.