On Mon, 18 May 2009, Erik Evensen wrote:

I believe the issue with "jclass (*)()" is the same as the one that was
reported for the Solaris build.  I would try the recently released JCC 2.3.

Yes, this is the fix made for Solaris. This type was replaced by its equivalent typedef (for all platforms).

It's interesting you're seeing this error with VS 2008, though. I don't use Windows much but I do test JCC builds on my old Win2k / MSVC 7.1 virtual machine and the code in question caused no problem there.

Andi..


Hope this helps....

cheers,

erik evensen

On Mon, May 18, 2009 at 8:35 AM, Christian Heimes <li...@cheimes.de> wrote:

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


Reply via email to