fileindex.cpp:230:27: error

Issue #167 resolved
jsbien created an issue

Perhaps I should compile with QT 5, but I don't know how - in Debian jessie there is no equivalent of libqt4-dev for QT 5, besides perhaps the compilation procedure should be changed somehow.

fileindex.cpp: In static member function static QString FileIndex::stringListToCsv(const QStringList&):
fileindex.cpp:230:27: error: invalid user-defined conversion from char to const QString& [-fpermissive]
  return formatted.join(';') + QChar('\n');
                           ^
In file included from /usr/include/qt4/QtCore/qdir.h:45:0,
                 from /usr/include/qt4/QtCore/qabstractfileengine.h:45,
                 from /usr/include/qt4/QtCore/QtCore:3,
                 from fileindex.h:8,
                 from fileindex.cpp:5:
/usr/include/qt4/QtCore/qstring.h:419:43: note: candidate is: QString::QString(const char*) <near match>
     inline QT_ASCII_CAST_WARN_CONSTRUCTOR QString(const char *ch) : d(fromAscii_helper(ch))
                                           ^
/usr/include/qt4/QtCore/qstring.h:419:43: note:   no known conversion for argument 1 from char to const char*
fileindex.cpp:230:27: error: invalid conversion from char to const char* [-fpermissive]
  return formatted.join(';') + QChar('\n');
                           ^
In file included from /usr/include/qt4/QtCore/qdir.h:45:0,
                 from /usr/include/qt4/QtCore/qabstractfileengine.h:45,
                 from /usr/include/qt4/QtCore/QtCore:3,
                 from fileindex.h:8,
                 from fileindex.cpp:5:
/usr/include/qt4/QtCore/qstring.h:419:43: note: initializing argument 1 of QString::QString(const char*)
     inline QT_ASCII_CAST_WARN_CONSTRUCTOR QString(const char *ch) : d(fromAscii_helper(ch))
                                           ^
Makefile:614: recipe for target 'fileindex.o' failed

Comments (1)

  1. jsbien reporter

    I managed to compile with QT 5 (I'm still unable to build a package, but the problem is Debian specific)

  2. Log in to comment