I'm trying to compile JCC 2.2 for Python 2.6 with Visual Studio 2008. The build process fails with this error message:
building 'jcc._jcc' extension C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\cl.exe /c /nologo /Ox /MD /W3 /G S- /DNDEBUG -IC:\Programme\java\jdk1.6.0_12/include -IC:\Programme\java\jdk1.6.0 _12/include/win32 -I_jcc -Ijcc/sources -Ic:\Python26\include -Ic:\Python26\PC /T pjcc/sources/functions.cpp /Fobuild\temp.win32-2.6\Release\jcc/sources/functions .obj -DPYTHON functions.cpp c:\python26\jcc-2.2\jcc\sources\JCCEnv.h(93) : warning C4251: 'JCCEnv::refs' : c lass 'std::multimap<_Kty,_Ty>' needs to have dll-interface to be used by clients of class 'JCCEnv' with [ _Kty=int, _Ty=countedRef ] c:\python26\jcc-2.2\jcc\sources\JArray.h(133) : warning C4530: C++ exception han dler used, but unwind semantics are not enabled. Specify /EHsc jcc/sources/functions.cpp(58) : warning C4101: 'e' : unreferenced local variable jcc/sources/functions.cpp(154) : error C2059: syntax error : ')' jcc/sources/functions.cpp(500) : error C2059: syntax error : ')' error: command '"C:\Programme\Microsoft Visual Studio 9.0\VC\BIN\cl.exe"' failed with exit status 2 Apparently MSVC is unable to parse the line "jclass (*initializeClass)() = va_arg(list, jclass (*)());" The problem seems to be "jclass (*)()". Christian