Brent "Chip" Edwards (chipuni) wrote in kluje,
Brent "Chip" Edwards
chipuni
kluje

ambiguous overload for 'operator<<'

Dear KluJers,

Is Buddy Brewer still maintaining this software?

When I try to compile it, I get the message:

make all-recursive
make[1]: Entering directory `/home/chipuni/Source/kluje-0.7'
Making all in kluje
make[2]: Entering directory `/home/chipuni/Source/kluje-0.7/kluje'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt3/ -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -O2 -fno-exceptions -fno-check-new -c klujeio.cpp
In file included from /usr/include/c++/3.3/backward/iostream.h:31,
from editeventsdialog.h:35,
from kluje.h:29,
from klujeio.cpp:18:
/usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider usingone of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the
[Error: Irreparable invalid markup ('<x.h>') in entry. Owner must fix manually. Raw contents below.]

Dear KluJers,

Is Buddy Brewer still maintaining this software?

When I try to compile it, I get the message:

make all-recursive
make[1]: Entering directory `/home/chipuni/Source/kluje-0.7'
Making all in kluje
make[2]: Entering directory `/home/chipuni/Source/kluje-0.7/kluje'
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt3/ -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -O2 -fno-exceptions -fno-check-new -c klujeio.cpp
In file included from /usr/include/c++/3.3/backward/iostream.h:31,
from editeventsdialog.h:35,
from kluje.h:29,
from klujeio.cpp:18:
/usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider usingone of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/include/kde -I/usr/include/qt3/ -I/usr/X11R6/include -DQT_THREAD_SUPPORT -D_REENTRANT -O2 -fno-exceptions -fno-check-new -c klujesystray.cpp
In file included from /usr/include/c++/3.3/backward/iostream.h:31,
from editeventsdialog.h:35,
from kluje.h:29,
from klujesystray.cpp:19:
/usr/include/c++/3.3/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider usingone of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <sstream> instead of the deprecated header <strstream.h>. To disable this warning use -Wno-deprecated.
klujesystray.cpp: In member function `void KLuJeSysTray::selectedLink(int)':
klujesystray.cpp:100: error: ambiguous overload for 'operator<<' in '
(&kdDebug(int)())->kdbgstream::operator<<("User selected link ") << url'
/usr/include/kde/kdebug.h:215: error: candidates are: kdbgstream&
kdbgstream::operator<<(const QString&)
/usr/include/kde/kdebug.h:344: error: kdbgstream&
kdbgstream::operator<<(const KURL&)
make[2]: *** [klujesystray.o] Error 1
make[2]: Leaving directory `/home/chipuni/Source/kluje-0.7/kluje'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/chipuni/Source/kluje-0.7'
make: *** [all-recursive-am] Error 2

The fix for THIS problem is very obvious (change line 100 of klujesystray.cpp to " kdDebug(6969) << "User selected link " << (KURL) url << endl;"

But fixing that bug leads to another:

<blockquote><tt>
/usr/include/kde/keditcl.h: In member function `void
EditEventsDialog::disable()':
/usr/include/kde/keditcl.h:388: error: `virtual void KEdit::setCursor(const
QCursor&)' is protected
editeventsdialog.cpp:162: error: within this context
/usr/include/kde/keditcl.h: In member function `void EditEventsDialog::enable()
':
/usr/include/kde/keditcl.h:388: error: `virtual void KEdit::setCursor(const
QCursor&)' is protected
editeventsdialog.cpp:170: error: within this context
make: *** [editeventsdialog.o] Error 1
</tt></blockquote>

This is getting into territory that takes more than two minutes to fix....

What do you recommend?

-- Chip
  • Post a new comment

    Error

    default userpic
  • 4 comments
fix and fork?

as I see, maintainer is go away...

p.s.: I may help with russian translation.

p.s.2: I compile it! but I have kde 3.2.3.
I know it's not the best idea on earth, but I went into the editeventsdialog.ccp file and removed

void EditEventsDialog::disable()
{
this->setEnabled(false);
this->setCursor(QCursor(Qt::WaitCursor));
subjLineEdit->setCursor(QCursor(Qt::WaitCursor));
eventEdit->setCursor(QCursor(Qt::WaitCursor));
}

void EditEventsDialog::enable()
{
this->setEnabled(true);
this->setCursor(QCursor(Qt::ArrowCursor));
subjLineEdit->setCursor(QCursor(Qt::ArrowCursor));
eventEdit->setCursor(QCursor(Qt::ArrowCursor));
}

that whole bit, save it to a seperate file for back up, and did the make again. everything installed fine and it all works. *shrug*
Sorry, but is have another solution?
In klujesystray.cpp:100
change
kdDebug(6969) << "User selected link " << url << endl;
to
kdDebug(6969) << "User selected link " << url.toString().latin1() << endl;