#4 Can't compile Edit

v1.0_(example)
closed
nobody
None
1
2013-04-30
2013-01-18
TabletHater
No

make
g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DVERSION_NUMBER=\"33.5.0\" -DPRINTER_ENABLE -DASPELL_ENABLE -DSPELLCHECK_ENABLE -DHUNSPELL_ENABLE -DSPELLCHECK_ENABLE -DNOCRYPT -DNOUNCRYPT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/hunspell -I. -o rvln.o rvln.cpp
In file included from rvln.h:35:0,
from rvln.cpp:26:
spellchecker.h:46:3: warning: unused parameter ‘lang’ [-Wunused-parameter]
spellchecker.h:46:3: warning: unused parameter ‘path’ [-Wunused-parameter]
spellchecker.h:46:3: warning: unused parameter ‘user’ [-Wunused-parameter]
rvln.cpp: In member function ‘void rvln::search_find()’:
rvln.cpp:1642:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
rvln.cpp: In member function ‘void rvln::search_find_next()’:
rvln.cpp:1737:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
rvln.cpp: At global scope:
rvln.cpp:1877:6: warning: unused parameter ‘previous’ [-Wunused-parameter]
rvln.cpp: In member function ‘void rvln::man_find_prev()’:
rvln.cpp:2674:28: warning: variable ‘flags’ set but not used [-Wunused-but-set-variable]
rvln.cpp: At global scope:
rvln.cpp:4114:6: warning: unused parameter ‘exitCode’ [-Wunused-parameter]
rvln.cpp:4114:6: warning: unused parameter ‘exitStatus’ [-Wunused-parameter]
rvln.cpp:6494:6: warning: unused parameter ‘year’ [-Wunused-parameter]
rvln.cpp:6494:6: warning: unused parameter ‘month’ [-Wunused-parameter]
g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DVERSION_NUMBER=\"33.5.0\" -DPRINTER_ENABLE -DASPELL_ENABLE -DSPELLCHECK_ENABLE -DHUNSPELL_ENABLE -DSPELLCHECK_ENABLE -DNOCRYPT -DNOUNCRYPT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/hunspell -I. -o main.o main.cpp
In file included from rvln.h:35:0,
from main.cpp:23:
spellchecker.h:46:3: warning: unused parameter ‘lang’ [-Wunused-parameter]
spellchecker.h:46:3: warning: unused parameter ‘path’ [-Wunused-parameter]
spellchecker.h:46:3: warning: unused parameter ‘user’ [-Wunused-parameter]
g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DVERSION_NUMBER=\"33.5.0\" -DPRINTER_ENABLE -DASPELL_ENABLE -DSPELLCHECK_ENABLE -DHUNSPELL_ENABLE -DSPELLCHECK_ENABLE -DNOCRYPT -DNOUNCRYPT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/hunspell -I. -o todo.o todo.cpp
g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DVERSION_NUMBER=\"33.5.0\" -DPRINTER_ENABLE -DASPELL_ENABLE -DSPELLCHECK_ENABLE -DHUNSPELL_ENABLE -DSPELLCHECK_ENABLE -DNOCRYPT -DNOUNCRYPT -DQT_NO_DEBUG -DQT_XML_LIB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtXml -I/usr/include/qt4 -I/usr/include/hunspell -I. -o textproc.o textproc.cpp
textproc.cpp: In function ‘size_t str_fuzzy_search(const QString&, const QString&, size_t, double)’:
textproc.cpp:64:24: error: ambiguous overload for ‘operator[]’ in ‘s[(((size_t)j) + i)]
textproc.cpp:64:24: note: candidates are:
In file included from /usr/include/qt4/QtCore/QString:1:0,
from textproc.cpp:38:
/usr/include/qt4/QtCore/qstring.h:700:20: note: const QChar QString::operator const
/usr/include/qt4/QtCore/qstring.h:884:17: note: QCharRef QString::operator <near match="">
/usr/include/qt4/QtCore/qstring.h:884:17: note: no known conversion for implicit ‘this’ parameter from ‘const QString’ to ‘QString
/usr/include/qt4/QtCore/qstring.h:702:20: note: const QChar QString::operator const
/usr/include/qt4/QtCore/qstring.h:886:17: note: QCharRef QString::operator <near match="">
/usr/include/qt4/QtCore/qstring.h:886:17: note: no known conversion for implicit ‘this’ parameter from ‘const QString’ to ‘QString
make: *** [textproc.o] Error 1

(On Ubuntu minimal 12.10 + Fluxbox)

Discussion


  • Anonymous
    2013-01-26

    Again with 34:

    make
    g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DVERSION_NUMBER=\"34.0.0\" -DNOCRYPT -DNOUNCRYPT -DPRINTER_ENABLE -DASPELL_ENABLE -DSPELLCHECK_ENABLE -DHUNSPELL_ENABLE -DSPELLCHECK_ENABLE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/hunspell -I. -o rvln.o rvln.cpp
    In file included from rvln.h:35:0,
    from rvln.cpp:26:
    spellchecker.h:45:3: warning: unused parameter ‘lang’ [-Wunused-parameter]
    spellchecker.h:45:3: warning: unused parameter ‘path’ [-Wunused-parameter]
    spellchecker.h:45:3: warning: unused parameter ‘user’ [-Wunused-parameter]
    rvln.cpp: In member function ‘void rvln::search_find()’:
    rvln.cpp:1647:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    rvln.cpp: In member function ‘void rvln::search_find_next()’:
    rvln.cpp:1742:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    rvln.cpp: At global scope:
    rvln.cpp:1882:6: warning: unused parameter ‘previous’ [-Wunused-parameter]
    rvln.cpp:4142:6: warning: unused parameter ‘exitCode’ [-Wunused-parameter]
    rvln.cpp:4142:6: warning: unused parameter ‘exitStatus’ [-Wunused-parameter]
    rvln.cpp:6567:6: warning: unused parameter ‘year’ [-Wunused-parameter]
    rvln.cpp:6567:6: warning: unused parameter ‘month’ [-Wunused-parameter]
    g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DVERSION_NUMBER=\"34.0.0\" -DNOCRYPT -DNOUNCRYPT -DPRINTER_ENABLE -DASPELL_ENABLE -DSPELLCHECK_ENABLE -DHUNSPELL_ENABLE -DSPELLCHECK_ENABLE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/hunspell -I. -o main.o main.cpp
    In file included from rvln.h:35:0,
    from main.cpp:23:
    spellchecker.h:45:3: warning: unused parameter ‘lang’ [-Wunused-parameter]
    spellchecker.h:45:3: warning: unused parameter ‘path’ [-Wunused-parameter]
    spellchecker.h:45:3: warning: unused parameter ‘user’ [-Wunused-parameter]
    g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DVERSION_NUMBER=\"34.0.0\" -DNOCRYPT -DNOUNCRYPT -DPRINTER_ENABLE -DASPELL_ENABLE -DSPELLCHECK_ENABLE -DHUNSPELL_ENABLE -DSPELLCHECK_ENABLE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/hunspell -I. -o todo.o todo.cpp
    g++ -c -m64 -pipe -O2 -D_REENTRANT -Wall -W -DQT_WEBKIT -DVERSION_NUMBER=\"34.0.0\" -DNOCRYPT -DNOUNCRYPT -DPRINTER_ENABLE -DASPELL_ENABLE -DSPELLCHECK_ENABLE -DHUNSPELL_ENABLE -DSPELLCHECK_ENABLE -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I/usr/include/hunspell -I. -o textproc.o textproc.cpp
    textproc.cpp: In function ‘size_t str_fuzzy_search(const QString&, const QString&, size_t, double)’:
    textproc.cpp:64:24: error: ambiguous overload for ‘operator[]’ in ‘s[(((size_t)j) + i)]
    textproc.cpp:64:24: note: candidates are:
    In file included from /usr/include/qt4/QtCore/QString:1:0,
    from textproc.cpp:38:
    /usr/include/qt4/QtCore/qstring.h:700:20: note: const QChar QString::operator const
    /usr/include/qt4/QtCore/qstring.h:884:17: note: QCharRef QString::operator <near match="">
    /usr/include/qt4/QtCore/qstring.h:884:17: note: no known conversion for implicit ‘this’ parameter from ‘const QString’ to ‘QString
    /usr/include/qt4/QtCore/qstring.h:702:20: note: const QChar QString::operator const
    /usr/include/qt4/QtCore/qstring.h:886:17: note: QCharRef QString::operator <near match="">
    /usr/include/qt4/QtCore/qstring.h:886:17: note: no known conversion for implicit ‘this’ parameter from ‘const QString’ to ‘QString
    make: *** [textproc.o] Error 1

     
  • Thanks, I'll try to reproduce and fix it!

     
    Last edit: Peter Semiletov 2013-01-26


Anonymous


Cancel   Add attachments