Compilation Error : no matching function for call to ‘boost::program_options::options_description

Asked by Badie Saliba


I'm trying to compile qwwad-1.4.0 from source code on CentOS 6.5 system during the compilation I'm getting the below error
Can you please advise how to debug this issue ?

In file included from /usr/local/gcc/5.3/include/c++/5.3.0/memory:81:0,
                 from /usr/include/boost/ptr_container/detail/reversible_ptr_container.hpp:39,
                 from /usr/include/boost/ptr_container/detail/associative_ptr_container.hpp:20,
                 from /usr/include/boost/ptr_container/ptr_map_adapter.hpp:20,
                 from /usr/include/boost/ptr_container/ptr_map.hpp:20,
                 from ../src/material_library.h:17,
                 from ../src/material_library.cpp:14:
/usr/local/gcc/5.3/include/c++/5.3.0/bits/unique_ptr.h:49:28: note: declared here
   template<typename> class auto_ptr;
  CXX src/qwwad-debye.lo
  CXX src/qwwad/donor-energy-minimiser.lo
  CXX src/qwwad/donor-energy-minimiser-linear.lo
  CXX src/qwwad/donor-energy-minimiser-fast.lo
  CXX src/qwwad/mesh.lo
  CXX src/qwwad/file-io.lo
  CXX src/qwwad/file-io-deprecated.lo
  CXX src/qwwad/options.lo
../src/qwwad/options.cpp: In member function ‘std::__cxx11::string QWWAD::Options::name_mapper(std::__cxx11::string) const’:
../src/qwwad/options.cpp:236:66: error: no matching function for call to ‘boost::program_options::options_description::find(std::__cxx11::string&, bool, bool) const’
             option_name = config_options.find(suffix, false, true).long_name();
In file included from /usr/include/boost/program_options.hpp:15:0,
                 from ../src/qwwad/options.h:9,
                 from ../src/qwwad/options.cpp:10:
/usr/include/boost/program_options/options_description.hpp:188:35: note: candidate: const boost::program_options::option_description& boost::program_options::options_description::find(const string&, bool) const
         const option_description& find(const std::string& name, bool approx)
/usr/include/boost/program_options/options_description.hpp:188:35: note: candidate expects 2 arguments, 3 provided
make[1]: *** [src/qwwad/options.lo] Error 1
make[1]: Leaving directory `/tmp/devl/qwwad-1.4.0/build'
make: *** [all] Error 2

Thanks in advance,

Question information

English Edit question
Quantum wells, wires and dots Edit question
Alex Valavanis Edit question
Solved by:
Alex Valavanis
Last query:
Last reply:
Bug report opened at
Revision history for this message
Best Alex Valavanis (valavanisalex) said :

Hi Badies,

Many thanks for the feedback. I've created a bug report to handle this issue. at

I'll mark this question as "Answered" and continue handling this request over at the bug report page.


Revision history for this message
Badie Saliba (badies) said :

Thanks Alex Valavanis, that solved my question.