GNOME Bugzilla – Bug 478199
Date::set_time() compilation error on NetBSD/amd64
Last modified: 2007-10-19 10:10:48 UTC
Compiling glibmm-2.14.0 on NetBSD-4.99.31/amd64 fails with: ../../glib/glibmm/date.h:142: error: 'void Glib::Date::set_time(time_t)' cannot be overloaded ../../glib/glibmm/date.h:130: error: with 'void Glib::Date::set_time(GTime)' date.cc:84: error: redefinition of 'void Glib::Date::set_time(time_t)' date.cc:76: error: 'void Glib::Date::set_time(GTime)' previously defined here date.cc: In member function 'void Glib::Date::set_time(GTime)': date.cc:86: error: 'timet' was not declared in this scope
I guess that we need a configure check to discover whether this is allowed by the compiler/environment. Then we can ifdef out one of the set_time() functions.
*** This bug has been marked as a duplicate of 386990 ***