This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

no matching function


 
I'm trying to build PWLIB of OpenH323 using gcc 3.0 and would like help interpreting an error message.  Here's the message:
 
In file included from /elmer/elmer16/rcollins/pwlib/include/ptlib/unix/ptlib/svcproc.h:63,
                 from /elmer/elmer16/rcollins/pwlib/include/ptclib/httpsvc.h:133
,
                 from ../../ptclib/httpsvc.cxx:219:
/elmer/elmer16/rcollins/pwlib/include/ptlib/svcproc.h: In constructor
   `PSystemLog::PSystemLog(PSystemLog::Level)':
/elmer/elmer16/rcollins/pwlib/include/ptlib/svcproc.h:139: no matching function
   for call to `std::basic_iostream<char, std::char_traits<char>
   >::basic_iostream()'
/elmer/elmer4/rcollins/gcc3/dist/include/g++-v3/bits/std_iosfwd.h:65: candidates
   are: std::basic_iostream<char, std::char_traits<char>
   >::basic_iostream(const <anonymous>**, const std::basic_iostream<char,
   std::char_traits<char> >&)
/elmer/elmer4/rcollins/gcc3/dist/include/g++-v3/bits/std_istream.h:278:
           std::basic_iostream<_CharT,
   _Traits>::basic_iostream(std::basic_streambuf<_CharT, _Traits>*) [with
   _CharT = char, _Traits = std::char_traits<char>]
make[1]: *** [/elmer/elmer16/rcollins/pwlib/lib/obj_unixware_x86_r/httpsvc.o] Error 1
 
The message below tells me there is no matching function for call to the default constructor of basic_iostream.
 
The function being compiled is a constructor of PSystemLog, which is derived from iostream (a template defing the basic_iostream class).
 
The base class constructor gets called automatically.  Does the language try to find one that matches the derived class constructor signature?  Or does it just use the default constructor?  Anyway, this explains why there is a call (implied) to the default constructor of basic_iostream.
 
If a default constructor isn't defined, doesn't it get created automatically?  Does a default basic_iostream make any sense?  Has it been explicitly defined private to prevent its use?
 
Am I missing an obvious fix?
 
Roger
 
--
Roger Collins
ProProject, Inc.
www.ProProject.com -- Manage time, expenses, and billing on projects
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]