I'm trying to build JCC 2.6 (from the PyLucene 3.0.2 source bundle) with
GCC 4.5 on Windows XP using MinGW/msys.

creating build\temp.win32-2.6\Release\jcc\sources
c:\MinGW\bin\gcc.exe -mno-cygwin -mdll -O -Wall -D_jcc_lib -DJCC_VER="2.6" 
"-IC:\Program Files\Java\jdk1.6.0_21\include" "-IC:\Program 
Files\Java\jdk1.6.0_21\include\win32" -I_jcc -Ijcc/sources 
-Ic:\Python26\include -Ic:\Python26\PC -c jcc/sources/jcc.cpp -o 
build\temp.win32-2.6\Release\jcc\sources\jcc.o -DPYTHON -fno-strict-aliasing 
-Wno-write-strings
jcc/sources/jcc.cpp: In function 'PyObject* initJCC(PyObject*)':
jcc/sources/jcc.cpp:337:48: error: cannot convert 'double' to 'const char*' for 
argument '1' to 'PyObject* PyString_FromString(const char*)'
error: command 'gcc' failed with exit status 1

I believe the #ifdef a few lines above needs to change from

#ifdef _MSC_VER

to

#if defined(_MSC_VER) || defined(__WIN32)

to match the similar #ifdefs elsewhere in the code.

JCC_VER is a double on Windows but a string elsewhere?  Odd.

Bill

Reply via email to