Unable to use vector variable in the precompiled file "cint -n"

Hi,

I tried generating precompiled file using
"cint.exe -nGenerate.cxx -c-1 example.h"

example.h

#include
using namespace std;

std::vector test1;
int functionXyz();

When i compiled this generate file(Generate.cxx) with CINT project I was getting below error.

error C2664: ‘std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types>>::_Vector_const_iterator(const std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types>> &)’ : cannot convert argument 1 from ‘int *’ to ‘const std::_Vector_const_iterator<std::_Vector_val<std::_Simple_types>> &’
Generate.cxx

vector variable “test1” is creating problem.

Does anybody have an idea on this.? if so please help me to resolve this.

Thanks Inadvance,

Muthu

Hi,

Could you post the versions of your compiler and CINT? Which platform is this?

Axel.

It is Windows Platform, Visual C++ compiler.

Cint Version. 5.16.

Hi,

Which compiler version?

Axel.