Hello,
many thanks for the link. I’ve tried to follow the instructions but If I do:
>>> ROOT.gInterpreter.AddIncludePath("$ROOTSYS/")
>>> ROOT.gInterpreter.GenerateDictionary("vector<ROOT::Minuit2::MinuitParameter>","math/minuit2/inc/Minuit2/MinuitParameter.h;vector");
then I get an error:
/home/jiri/Desktop/rootProblem/test10/AutoDict_vector_ROOT__Minuit2__MinuitParameter__cxx_ACLiC_dict.cxx: In member function ‘void std::vector<_Tp, _Alloc>::resize(std::vector::size_type, value_type) [with _Tp = ROOT::Minuit2::MinuitParameter, _Alloc = std::allocator<ROOT::Minuit2::MinuitParameter>, std::vector::size_type = long unsigned int, value_type = ROOT::Minuit2::MinuitParameter]’:
/home/jiri/Desktop/rootProblem/test10/AutoDict_vector_ROOT__Minuit2__MinuitParameter__cxx_ACLiC_dict.cxx:264:239: error: no matching function for call to ‘ROOT::Minuit2::MinuitParameter::MinuitParameter()’
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:67:4: note: candidates are: ROOT::Minuit2::MinuitParameter::MinuitParameter(const ROOT::Minuit2::MinuitParameter&)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:52:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:45:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:38:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double)
/home/jiri/Desktop/rootProblem/test10/AutoDict_vector_ROOT__Minuit2__MinuitParameter__cxx_ACLiC_dict.cxx: In constructor ‘std::vector<_Tp, _Alloc>::vector(std::vector::size_type, const value_type&, const allocator_type&) [with _Tp = ROOT::Minuit2::MinuitParameter, _Alloc = std::allocator<ROOT::Minuit2::MinuitParameter>, std::vector::size_type = long unsigned int, value_type = ROOT::Minuit2::MinuitParameter, allocator_type = std::allocator<ROOT::Minuit2::MinuitParameter>]’:
/home/jiri/Desktop/rootProblem/test10/AutoDict_vector_ROOT__Minuit2__MinuitParameter__cxx_ACLiC_dict.cxx:338:214: error: no matching function for call to ‘ROOT::Minuit2::MinuitParameter::MinuitParameter()’
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:67:4: note: candidates are: ROOT::Minuit2::MinuitParameter::MinuitParameter(const ROOT::Minuit2::MinuitParameter&)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:52:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:45:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:38:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double)
/home/jiri/Desktop/rootProblem/test10/AutoDict_vector_ROOT__Minuit2__MinuitParameter__cxx_ACLiC_dict.cxx:340:227: error: no matching function for call to ‘ROOT::Minuit2::MinuitParameter::MinuitParameter()’
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:67:4: note: candidates are: ROOT::Minuit2::MinuitParameter::MinuitParameter(const ROOT::Minuit2::MinuitParameter&)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:52:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:45:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:38:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double)
In file included from /home/jiri/Desktop/rootProblem/test10/AutoDict_vector_ROOT__Minuit2__MinuitParameter__cxx_ACLiC_dict.cxx:19:0:
/opt/root/include/TCollectionProxyInfo.h: In member function ‘void std::vector<_Tp, _Alloc>::resize(std::vector::size_type, value_type) [with _Tp = ROOT::Minuit2::MinuitParameter, _Alloc = std::allocator<ROOT::Minuit2::MinuitParameter>, std::vector::size_type = long unsigned int, value_type = ROOT::Minuit2::MinuitParameter]’:
/opt/root/include/TCollectionProxyInfo.h:202:10: instantiated from ‘static void ROOT::TCollectionProxyInfo::Pushback<T>::resize(void*, size_t) [with T = std::vector<ROOT::Minuit2::MinuitParameter, std::allocator<ROOT::Minuit2::MinuitParameter> >, size_t = long unsigned int]’
/opt/root/include/TCollectionProxyInfo.h:369:64: instantiated from ‘static ROOT::TCollectionProxyInfo* ROOT::TCollectionProxyInfo::Generate(const T&) [with T = ROOT::TCollectionProxyInfo::Pushback<std::vector<ROOT::Minuit2::MinuitParameter, std::allocator<ROOT::Minuit2::MinuitParameter> > >]’
/home/jiri/Desktop/rootProblem/test10/AutoDict_vector_ROOT__Minuit2__MinuitParameter__cxx_ACLiC_dict.cxx:125:146: instantiated from here
/opt/root/include/TCollectionProxyInfo.h:202:10: error: no matching function for call to ‘ROOT::Minuit2::MinuitParameter::MinuitParameter()’
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:67:4: note: candidates are: ROOT::Minuit2::MinuitParameter::MinuitParameter(const ROOT::Minuit2::MinuitParameter&)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:52:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:45:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:38:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double)
/opt/root/include/TCollectionProxyInfo.h: In static member function ‘static void* ROOT::TCollectionProxyInfo::Type<T>::construct(void*, size_t) [with T = std::vector<ROOT::Minuit2::MinuitParameter, std::allocator<ROOT::Minuit2::MinuitParameter> >, size_t = long unsigned int]’:
/opt/root/include/TCollectionProxyInfo.h:369:64: instantiated from ‘static ROOT::TCollectionProxyInfo* ROOT::TCollectionProxyInfo::Generate(const T&) [with T = ROOT::TCollectionProxyInfo::Pushback<std::vector<ROOT::Minuit2::MinuitParameter, std::allocator<ROOT::Minuit2::MinuitParameter> > >]’
/home/jiri/Desktop/rootProblem/test10/AutoDict_vector_ROOT__Minuit2__MinuitParameter__cxx_ACLiC_dict.cxx:125:146: instantiated from here
/opt/root/include/TCollectionProxyInfo.h:165:13: error: no matching function for call to ‘ROOT::Minuit2::MinuitParameter::MinuitParameter()’
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:67:4: note: candidates are: ROOT::Minuit2::MinuitParameter::MinuitParameter(const ROOT::Minuit2::MinuitParameter&)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:52:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:45:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double, double)
/opt/root/math/minuit2/inc/Minuit2/MinuitParameter.h:38:4: note: ROOT::Minuit2::MinuitParameter::MinuitParameter(unsigned int, const std::string&, double)
g++: /home/jiri/Desktop/rootProblem/test10/AutoDict_vector_ROOT__Minuit2__MinuitParameter__cxx_ACLiC_dict.o: No such file or directory
Error in <ACLiC>: Compilation failed!
So it looks like there is a problem. What am I doing wrong?
Cheers,
Jiri