Help in generating dummy header file2

when i generating the dictionary, i met probelm in stl.

the content of the extlib.h

#include <vector>
#include <string>
using namespce std;

struct tagCurveInfo
{
  tagCurveInfo()
 {
      a = 5;
 };
  int a;
};

int func1(vector<tagCurveInfo> &a);
int func2(vector<vector<string>> b);

how could this change?

in the new version makecint, it doesn’t need to use the “-cint -M0x10” parameter.
but when i run “make” in the cygwin:

$ make
cl -DG__CXXLINK_ON -IC:/cint//inc -o G__main.obj -c G__main.cxx
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

G__main.cxx
/cygdrive/c/cint/cint.exe  -w0 -zLeadData -nG__cpp_LeadData.cxx  -D__MAKECINT__
-DG__MAKECINT -p -c-1 -A -IC:/cint//inc  -DG__REDIRECTIO -DG__SHAREDLIB -DG__UNI
X -DG__WIN32 -DVISUAL_CPLUSPLUS -DG__NEWSTDHEADER -D_CRT_SECURE_NO_DEPRECATE=1 -
D_SECURE_SCL=0 -D_HAS_ITERATOR_DEBUGGING=0 -DG__HAVE_CONFIG -DG__NOMAKEINFO   Da
taCommonBase.h DataInterface_Base.h LeadIOCurve.h LeadIOStream.h LeadIOTable.h L
eadIOTDT.h LeadIOWell.h LeadLog.h LeadStruct.h NotifiedItem.h
364600_cint.cxx
6646078_cint.cxx
C:\cint\stl\_vector(14) : fatal error C1083: can not open file:“prec_stl/vector
”: No such file or directory
Error: external preprocessing failed. (0)
!!!Removing G__cpp_LeadData.cxx G__cpp_LeadData.h !!!
make: *** [G__cpp_LeadData.cxx] Error 1

i thout it is the reson of lackness of prec_stl,so i copy the prec_stl dir from src to the c:\cint\include,then run make

$ make
cl -DG__CXXLINK_ON -IC:/cint//inc -o G__main.obj -c G__main.cxx
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for 80x86
Copyright (C) Microsoft Corporation 1984-2002. All rights reserved.

G__main.cxx
/cygdrive/c/cint/cint.exe  -w0 -zLeadData -nG__cpp_LeadData.cxx  -D__MAKECINT__
-DG__MAKECINT -p -c-1 -A -IC:/cint//inc  -DG__REDIRECTIO -DG__SHAREDLIB -DG__UNI
X -DG__WIN32 -DVISUAL_CPLUSPLUS -DG__NEWSTDHEADER -D_CRT_SECURE_NO_DEPRECATE=1 -
D_SECURE_SCL=0 -D_HAS_ITERATOR_DEBUGGING=0 -DG__HAVE_CONFIG -DG__NOMAKEINFO   Da
taCommonBase.h DataInterface_Base.h LeadIOCurve.h LeadIOStream.h LeadIOTable.h L
eadIOTDT.h LeadIOWell.h LeadLog.h LeadStruct.h NotifiedItem.h
3560_cint.cxx
65693_cint.cxx
1056265_cint.cxx
Error: no such template typenameiterator_traits<vector<tagCurveInfo,allocator<ta
gCurveInfo> >::iterator> c:\cint/include\prec_stl/iterator(477)
Error: no such template typenameiterator_traits<vector<tagCurveInfo,allocator<ta
gCurveInfo> >::iterator> c:\cint/include\prec_stl/iterator(477)
Error: no such template typenameiterator_traits<vector<tagCurveInfo,allocator<ta
gCurveInfo> >::iterator> c:\cint/include\prec_stl/iterator(477)
Error: no such template typenameiterator_traits<vector<tagCurveInfo,allocator<ta
gCurveInfo> >::iterator> c:\cint/include\prec_stl/iterator(477)
Error: no such template typenameiterator_traits<vector<tagCurveInfo,allocator<ta
gCurveInfo> >::iterator> c:\cint/include\prec_stl/iterator(477)
!!!Removing G__cpp_LeadData.cxx G__cpp_LeadData.h !!!
make: *** [G__cpp_LeadData.cxx] Error 1

Hi,

Which version of CINT are you using?

Philippe.

cint-5.16.19

any reply?

i think it is the reason of the generated source file.

Error: no such template typenameiterator_traits<vector<tagCurveInfo,allocator<ta
gCurveInfo> >::iterator> prec_stl/iterator(477)

can anyone help me?
y this is happens?

normally, “typename” & “iterator_traits” should not contact together.

Hi,

is this still an issue? It looks like an broken CINT install.

Axel.

yes, it is still an issue.
i just don’t know how to figure it out
i have write simple example,it runs okay.
but when i tried my case,it can not execute.
i just don’t know y.

broken cint install?
i don’t think so.

because i have write some simple examples.and it runs correct.

if it is a broken cint install ,how could this example run?

Hi,

Did you try ‘make test’? You can also try ‘cd test; ./testall.cxx’

Cheers,
Philippe.

Hi,

What did you set CINTSYSDIR to?

Philippe.

hi ,i have get into the test dir
and run cint ./testall.cxx
it runs okay.

i didn’t set the CINTSYSDIR,but i add the “c:\cint” into the path.

[quote]i didn’t set the CINTSYSDIR,[/quote]Well you should. If you have a newer version of you can use the script setenv.sh (or setenv.csh) to properly setup cint.

Cheers,
Philippe.