Opened 4 years ago
Closed 4 years ago
#1499 closed Bug (fixed)
problem in installation
Reported by: | rameswar | Owned by: | |
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | Delphes code | Version: | Delphes 3 |
Keywords: | Cc: |
Description
while installing delphes in my ubuntu i am getting the following error.. can you please tell me the source of the error...
Compiling classes/DelphesTF2.cc
classes/DelphesTF2.cc: In constructor ‘DelphesTF2::DelphesTF2()’:
classes/DelphesTF2.cc:35:27: error: no match for ‘operator=’ (operand types are ‘std::unique_ptr<TFormula>’ and ‘TFormula*’)
35 | fFormula = new TFormula();
|
In file included from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from /home/rameswar.s/apps/root/include/ROOT/RWrap_libcpp_string_view.h:44,
from /home/rameswar.s/apps/root/include/ROOT/RStringView.hxx:26,
from /home/rameswar.s/apps/root/include/TString.h:29,
from /home/rameswar.s/apps/root/include/TNamed.h:26,
from /home/rameswar.s/apps/root/include/TFormula.h:15,
from /home/rameswar.s/apps/root/include/TF1.h:29,
from /home/rameswar.s/apps/root/include/TF2.h:26,
from ./classes/DelphesTF2.h:22,
from classes/DelphesTF2.cc:19:
/usr/include/c++/9/bits/unique_ptr.h:305:7: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Tp, _Dp>&&) [with _Tp = TFormula; _Dp = std::default_delete<TFormula>]’
305 | operator=(unique_ptr&& u) noexcept
|
~
/usr/include/c++/9/bits/unique_ptr.h:305:30: note: no known conversion for argument 1 from ‘TFormula*’ to ‘std::unique_ptr<TFormula>&&’
305 | operator=(unique_ptr&& u) noexcept
|
~
/usr/include/c++/9/bits/unique_ptr.h:325:2: note: candidate: ‘template<class _Up, class _Ep> typename std::enable_if<std::__and_<std::__and_<std::is_convertible<typename std::unique_ptr<_Up, _Ep>::pointer, typename std::uniq_ptr_impl<_Tp, _Dp>::pointer>, std::not_<std::is_array<_Up> > >, std::is_assignable<_T2&, _U2&&> >::value, std::unique_ptr<_Tp, _Dp>&>::type std::unique_ptr<_Tp, _Dp>::operator=(std::unique_ptr<_Up, _Ep>&&) [with _Up = _Up; _Ep = _Ep; _Tp = TFormula; _Dp = std::default_delete<TFormula>]’
325 | operator=(unique_ptr<_Up, _Ep>&& u) noexcept
|
~
/usr/include/c++/9/bits/unique_ptr.h:325:2: note: template argument deduction/substitution failed:
classes/DelphesTF2.cc:35:27: note: mismatched types ‘std::unique_ptr<_Tp, _Dp>’ and ‘TFormula*’
35 | fFormula = new TFormula();
|
In file included from /usr/include/c++/9/bits/locale_conv.h:41,
from /usr/include/c++/9/locale:43,
from /usr/include/c++/9/iomanip:43,
from /home/rameswar.s/apps/root/include/ROOT/RWrap_libcpp_string_view.h:44,
from /home/rameswar.s/apps/root/include/ROOT/RStringView.hxx:26,
from /home/rameswar.s/apps/root/include/TString.h:29,
from /home/rameswar.s/apps/root/include/TNamed.h:26,
from /home/rameswar.s/apps/root/include/TFormula.h:15,
from /home/rameswar.s/apps/root/include/TF1.h:29,
from /home/rameswar.s/apps/root/include/TF2.h:26,
from ./classes/DelphesTF2.h:22,
from classes/DelphesTF2.cc:19:
/usr/include/c++/9/bits/unique_ptr.h:334:7: note: candidate: ‘std::unique_ptr<_Tp, _Dp>& std::unique_ptr<_Tp, _Dp>::operator=(std::nullptr_t) [with _Tp = TFormula; _Dp = std::default_delete<TFormula>; std::nullptr_t = std::nullptr_t]’
334 | operator=(nullptr_t) noexcept
|
~
/usr/include/c++/9/bits/unique_ptr.h:334:17: note: no known conversion for argument 1 from ‘TFormula*’ to ‘std::nullptr_t’
334 | operator=(nullptr_t) noexcept
|
make: * [Makefile:2412: tmp/classes/DelphesTF2.o] Error 1
I have run across the same problem. Have u fixed it?
I use the ubutu18.04 and python3.8 and C++7.5.