hi, i set the enviroments as you suggested.
when i try the examples in the demo/makecint
the Complex,DArray,ReadFile is okay.
but there has some wrong with other examples.
1.UserMain
$ makecint -mk Makefile -m -I$CINTSYSDIR/cint7/inc -o UserMain -H UserMain.h -C++ UserMain.cxx
$ make
$ ./UserMain
Calling from interpreted main function
Error: Function f1(1234) is not defined in current scope script.cxx(11)
!!! return from main() function
if i typed as the readme file suggested:
$ makecint -mk Makefile -m -I$CINTSYSDIR -o UserMain -H UserMain.h -C++ UserMain.cxx
$ make
cl -Id:/CInt -DG__REDIRECTIO -DG__SHAREDLIB -DG__WIN32 -DWIN32 -D_WIN32 -DG__NEW
STDHEADER -DG__HAVE_CONFIG -DG__NOMAKEINFO -O2 -MD -G5 -nologo -wd4996 -GX -T
P -GR -wd4181 -FoUserMain.obj -c UserMain.cxx
UserMain.cxx
UserMain.cxx(11) : fatal error C1083: can not open include file:“G__ci.h”: No such file or directory
make: *** [UserMain.obj] Error 2
BTW, i think this two lines in the UserMain.cxx
G__init_cint("cint script.cxx");
state=G__init_cint("cint");
shoule be
G__init_cint("UserMain script.cxx");
state=G__init_cint("UserMain");
am i right?
2.p2f
Administrator@ZhangWei /cygdrive/d/CInt/demo/makecint/p2f
$ makecint -mk Makefile -o p2f -I$CINTSYSDIR/cint7/include -I$CINTSYSDIR/cint7/
src -H p2f.h -C++ p2f.C
##########################################################################
# makecint : interpreter-compiler for cint (Windows VisualC++ version)
# Copyright(c) 1995~2007 Masaharu Goto. Mailing list: cint@pcroot.cern.ch
##########################################################################
Run 'make -f Makefile' to compile the object
Administrator@ZhangWei /cygdrive/d/CInt/demo/makecint/p2f
$ make
cl -DG__REDIRECTIO -DG__SHAREDLIB -DG__WIN32 -DWIN32 -D_WIN32 -DG__NEWSTDHEADER
-DG__HAVE_CONFIG -DG__NOMAKEINFO -O2 -MD -G5 -nologo -wd4996 -GX -TP -GR -wd4
181 -DG__CXXLINK_ON -Id:/CInt/cint7/inc -FoG__main.obj -c G__main.cxx
G__main.cxx
cl -Id:/CInt/cint7/include -Id:/CInt/cint7/src -DG__REDIRECTIO -DG__SHAREDLIB -D
G__WIN32 -DWIN32 -D_WIN32 -DG__NEWSTDHEADER -DG__HAVE_CONFIG -DG__NOMAKEINFO -O
2 -MD -G5 -nologo -wd4996 -GX -TP -GR -wd4181 -Fop2f.obj -c p2f.C
p2f.C
d:/CInt\cint7\include\iostream.h(21) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\iostream.h(22) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\iostream.h(24) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\iostream.h(25) : error C2146: Syntax error: missing ";"(in
front of“ios")
d:/CInt\cint7\include\iostream.h(25) : error C2501: “ios” : Lack of storage
class or type specifier
d:/CInt\cint7\include\iostream.h(26) : warning C4081: Should enter "identifier";
found "else"
d:/CInt\cint7\include\iostream.h(27) : error C2146: Syntax error: missing ";"(in front
of ios_base”)
d:/CInt\cint7\include\iostream.h(27) : error C2378: “ios” : Re-definition; symbols
should not overloaded by the typedef
d:/CInt\cint7\include\iostream.h(25) : See "ios" statement
d:/CInt\cint7\include\iostream.h(28) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\iostream.h(30) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\iostream.h(31) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\iostream.h(33) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\iostream.h(34) : error C2146: Syntax error: missing ";"(in
front of identifier "ostringstream")
d:/CInt\cint7\include\iostream.h(34) : error C2501: “ostringstream” : Lack of
storage class or type specifier
d:/CInt\cint7\include\iostream.h(35) : error C2146: Syntax error: missing ";"(in
front of identifier "istringstream”)
d:/CInt\cint7\include\iostream.h(35) : error C2501: “istringstream” : Lack of
storage class or type specifier
d:/CInt\cint7\include\iostream.h(37) : warning C4081: Should enter "identifier"; found "else"
d:/CInt\cint7\include\iostream.h(38) : error C2146: Syntax error: missing ";"(in
front of“ostrstream”)
d:/CInt\cint7\include\iostream.h(38) : error C2378: “ostringstream” : Re-definition;
symbols should not overloaded by the typedef
d:/CInt\cint7\include\iostream.h(34) : See "ostringstream" statement
d:/CInt\cint7\include\iostream.h(39) : error C2146: Syntax error: missing ";"(in front
of "istrstream")
d:/CInt\cint7\include\iostream.h(39) : error C2378: “istringstream” : Re-definition;
symbols should not overloaded by the typedef
d:/CInt\cint7\include\iostream.h(35) : See "istringstream" statement
d:/CInt\cint7\include\iostream.h(40) : error C2146: Syntax error: missing ";"(in
front of identifier "strstream")
d:/CInt\cint7\include\iostream.h(40) : error C2501: “strstream” : Lack of
storage class or type specifier
d:/CInt\cint7\include\iostream.h(41) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\iostream.h(43) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\iostream.h(45) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\bool.h(8) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\bool.h(9) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\bool.h(11) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\bool.h(20) : error C2143: Syntax error: missing ";"(in front
of “const”)
d:/CInt\cint7\include\bool.h(20) : fatal error C1004: The End of the document in an accident
make: *** [p2f.obj] Error 2
it seems all the reason is because of #pragma.
3.Stub
$ makecint -mk Makefile -o Stub -H Src.h -i++ Stub.h -C++ Src.C
##########################################################################
# makecint : interpreter-compiler for cint (Windows VisualC++ version)
# Copyright(c) 1995~2007 Masaharu Goto. Mailing list: cint@pcroot.cern.ch
##########################################################################
Run 'make -f Makefile' to compile the object
Administrator@ZhangWei /cygdrive/d/CInt/demo/makecint/Stub
$ make
cl -DG__REDIRECTIO -DG__SHAREDLIB -DG__WIN32 -DWIN32 -D_WIN32 -DG__NEWSTDHEADER
-DG__HAVE_CONFIG -DG__NOMAKEINFO -O2 -MD -G5 -nologo -wd4996 -GX -TP -GR -wd4
181 -DG__CXXLINK_ON -Id:/CInt/cint7/inc -FoG__main.obj -c G__main.cxx
G__main.cxx
cl -DG__CXXLINK_ON -Id:/CInt/cint7/inc -DG__REDIRECTIO -DG__SHAREDLIB -DG__WIN32
-DWIN32 -D_WIN32 -DG__NEWSTDHEADER -DG__HAVE_CONFIG -DG__NOMAKEINFO -O2 -MD -G
5 -nologo -wd4996 -GX -FoG__setup.obj -c d:/CInt//cint7/main//G__setup.c
G__setup.c
cl -DG__REDIRECTIO -DG__SHAREDLIB -DG__WIN32 -DWIN32 -D_WIN32 -DG__NEWSTDHEADER
-DG__HAVE_CONFIG -DG__NOMAKEINFO -O2 -MD -G5 -nologo -wd4996 -GX -TP -GR -wd
4181 -FoSrc.obj -c Src.C
Src.C
/cygdrive/d/CInt/bin/cint.exe -w0 -zStub -nG__cpp_Stub.cxx -D__MAKECINT__ -DG_
_MAKECINT -c-1 -A -Id:/CInt/cint7/inc -DG__REDIRECTIO -DG__SHAREDLIB -DG__WIN3
2 -DWIN32 -D_WIN32 -DG__NEWSTDHEADER -DG__HAVE_CONFIG -DG__NOMAKEINFO Src.h +S
TUB Stub.h -STUB
Warning: global variable STUB_H specified in stub file. Ignored
cl -Id:/CInt/cint7/inc -DG__REDIRECTIO -DG__SHAREDLIB -DG__WIN32 -DWIN32 -D_WIN
32 -DG__NEWSTDHEADER -DG__HAVE_CONFIG -DG__NOMAKEINFO -O2 -MD -G5 -nologo -wd4
996 -GX -TP -GR -wd4181 -c G__cpp_Stub.cxx
G__cpp_Stub.cxx
link -OPT:REF -nologo -ignore:4049 -ignore:4217 -ignore:4221 -incremental:no -o
ut:Stub G__main.obj G__cpp_Stub.obj Src.obj G__setup.obj -LIBPATH:"d:/CInt/li
b" libCint.lib libReflex.lib kernel32.lib user32.lib
creating Stub.lib and Stub.exp
G__cpp_Stub.obj : error LNK2001: Unable to resolve external symbols "public: virtual int __thisc
all StubBase::disp(void)" (?disp@StubBase@@UAEHXZ)
Src.obj : error LNK2001: Unable to resolve external symbols "public: virtual int __thiscall Stub
Base::disp(void)" (?disp@StubBase@@UAEHXZ)
G__cpp_Stub.obj : error LNK2019: Unable to resolve external symbols "public: short __thiscall St
ubBase::set(short)" (?set@StubBase@@QAEFF@Z) ,this symbol is referenced in "public: __thiscall
StubBase::StubBase(short)" (??0StubBase@@QAE@F@Z)
Src.obj : error LNK2001: Unable to resolve external symbols "public: short __thiscall StubBase::
set(short)" (?set@StubBase@@QAEFF@Z)
G__cpp_Stub.obj : error LNK2001: Unable to resolve external symbols "public: virtual int __thisc
all StubClass::disp(void)" (?disp@StubClass@@UAEHXZ)
Src.obj : error LNK2001: Unable to resolve external symbols "public: virtual int __thiscall Stub
Class::disp(void)" (?disp@StubClass@@UAEHXZ)
G__cpp_Stub.obj : error LNK2019: Unable to resolve external symbols "public: double __thiscall S
tubClass::set(int,double)" (?set@StubClass@@QAENHN@Z) ,this symbol is referenced in "public: __
thiscall StubClass::StubClass(int,double)" (??0StubClass@@QAE@HN@Z)
Src.obj : error LNK2001: Unable to resolve external symbols "public: double __thiscall StubClass
::set(int,double)" (?set@StubClass@@QAENHN@Z)
Stub : fatal error LNK1120: 4 unresolved the external command
make: *** [Stub] Error 96
4.exception
$ makecint.exe -mk makeeh -dl eh.dll -H eh.h -I$CINTSYSDIR/cint7/include
##########################################################################
# makecint : interpreter-compiler for cint (Windows VisualC++ version)
# Copyright(c) 1995~2007 Masaharu Goto. Mailing list: cint@pcroot.cern.ch
##########################################################################
Run 'make -f makeeh' to compile the object
Administrator@ZhangWei /cygdrive/d/CInt/demo/makecint/exception
$ make -f makeeh
cl -Id:/CInt/cint7/inc -Id:/CInt/cint7/include -DG__REDIRECTIO -DG__SHAREDLIB -D
G__WIN32 -DWIN32 -D_WIN32 -DG__NEWSTDHEADER -DG__HAVE_CONFIG -DG__NOMAKEINFO -O
2 -MD -G5 -nologo -wd4996 -GX -TP -GR -wd4181 -c G__cpp_eh.cxx
G__cpp_eh.cxx
d:/CInt\cint7\include\stdio.h(4) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\stdio.h(11) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\stdio.h(12) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\bool.h(8) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\bool.h(9) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\bool.h(11) : warning C4068: Unknown Miscellaneous Notes
d:/CInt\cint7\include\bool.h(20) : error C2143: synax error : missing ";"(in front
of “const”)
d:/CInt\cint7\include\bool.h(20) : fatal error C1004: The End of the document in an accident
make: *** [G__cpp_eh.obj] Error 2
the same reson,the pragma.
finally,i am still a litttle confused about all the system:
the cint is a intepreter,and makecint is a special compiler,its output is an interpreter,
makecint can link the obj files/lib/dll/c/cxx into the cint to output a newer cint.
makecint had linked lots of libs into cint,so there has root,am i right?
then if i want to produce my own root-like system,how could i do?
use rootcint?
then what’s the difference of cint7/inc and cint7/include?