Hi Tarmo,
As you expected, CINT should find platform.h automatically in
cint/include. Do you have it? Did you define the environment variable
CINTSYSDIR to point to cint/?
Cheers, Axel.
Tarmo Pikaro wrote on 01/15/2012 09:01 AM:
> Hi !
>
> If I don't add this cint include folder - I'm getting error like this:
>
> C:\projects_prototype\cygwin_cint-5.18.00\cint\lib\win32api>makecint -mk Makewin -dl win32api.dll -h +P cintwin.h -P winfunc.h -cint -Z0
> ##########################################################################
> # makecint : interpreter-compiler for cint (Windows VisualC++ version)
> # Copyright(c) 1995~2010 Masaharu Goto. Mailing list:
cint@...
> ##########################################################################
> Run 'make -f Makewin' to compile the object
>
> C:\projects_prototype\cygwin_cint-5.18.00\cint\lib\win32api>make.exe -f Makewin
> /cygdrive/c/projects_prototype/cygwin_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 -IC:/cygwin/include/cint -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
> 2886030_cint.c
> .\cintwin.h(19) : fatal error C1083: Cannot open include file: 'platform.h': No such file or directory
> Error: external preprocessing failed. (0)
> !!!Removing G__c_win32api.c G__c_win32api.h !!!
> Makewin:70: recipe for target `G__c_win32api.c' failed
> make: *** [G__c_win32api.c] Error 1
>
> Is this generated by cint preprocessor or by CL compiler ?
>
> I guess cintwin.h declares it as
>
> /* cint headers */
> #ifdef __CINT__
> #include <stdlib.h>
> #include <platform.h>
> #endif
>
> and cint should be preprocessing cintwin.h - since only then __CINT__ is defined.
>
>
>
>
> --
> Have a nice day!
> Tarmo.
>
>