Hello,
I was able to download and build CINT using Visual Studio 10 and cygwin without any problems. I haven’t been able to build the win32api.dll. I spent some time trying to figure out the error and wasn’t really successful. Rather than spending more time trying to figure it out, I thought I would check first to see if I’m doing something especially stupid.
Here is the result of running sh setup (after setting up all the environmental variables, etc.).
##########################################################################
# makecint : interpreter-compiler for cint (Windows VisualC++ version)
# Copyright(c) 1995~2010 Masaharu Goto. Mailing list: cint@pcroot.cern.ch
##########################################################################
Run 'make -f Makewin' to compile the object
/cygdrive/t/cint-5.18.00/bin/cint.exe -K -w2 -zwin32api -nG__c_win32api.c -D__MAKECINT__ -DG__MAKECINT -DG__REDIRECTIO -DG__SHAREDLIB -DG__WIN32 -DWIN32 -D_WIN32 -DG__NEWSTDHEADER -D_CRT_SECURE_NO_DEPRECATE=1 -DG__HAVE_CONFIG -DG__NOMAKEINFO -c-2 -IT:/cint-5.18.00/cint/inc -DG__REDIRECTIO -DG__SHAREDLIB -DG__WIN32 -DWIN32 -D_WIN32 -DG__NEWSTDHEADER -D_CRT_SECURE_NO_DEPRECATE=1 -DG__HAVE_CONFIG -DG__NOMAKEINFO -Z0 +P cintwin.h -P winfunc.h
243763_cint.c
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\windef.h(124) : warning C4005: 'WINAPI' : macro redefinition
T:\cint-5.18.00/cint/include\platform.h(42) : see previous definition of 'WINAPI'
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\windef.h(126) : warning C4005: 'APIENTRY' : macro redefinition
T:\cint-5.18.00/cint/include\platform.h(48) : see previous definition of 'APIENTRY'
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(294) : warning C4005: 'NTAPI' : macro redefinition
T:\cint-5.18.00/cint/include\platform.h(39) : see previous definition of 'NTAPI'
C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\wingdi.h(30) : warning C4005: 'WINGDIAPI' : macro redefinition
T:\cint-5.18.00/cint/include\platform.h(45) : see previous definition of 'WINGDIAPI'
Warning: Unknown type SA_Parameter in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(79)
Warning: Unknown type SA_Parameter|SA_ReturnValue in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(110)
Warning: Unknown type SA_Parameter in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(141)
Warning: Unknown type SA_ReturnValue in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(153)
Warning: Unknown type SA_Method in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(163)
Warning: Unknown type SA_Parameter in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(174)
Warning: Unknown type SA_Parameter|SA_ReturnValue in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(184)
Warning: Unknown type SA_Parameter in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(194)
Warning: Unknown type SA_Parameter|SA_ReturnValue in function argument c:\program files (x86)\microsoft visual studio 10.0\vc\include\codeanalysis\sourceannotations.h(206)
Warning: Unknown type 'uintptr_t' in function argument handled as int C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\crtdefs.h(550)
------------>
Error: Symbol LONG_PTR is not defined in current scope C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(2235)
Error: illegal pointer to class object (XSAVE_AREA*)0 0x0 59 C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\include\winnt.h(2235)
<-------------
!!!Removing G__c_win32api.c G__c_win32api.h !!!
make: *** [G__c_win32api.c] Error 1
mv: cannot stat `win32api.dll*': No such file or directory
The lines where the error occurs are a CASSERT macro that seems to be checking alignment. It just seems weird that the error occurs in winnt.h.
Any help appreciated.
–Steve