easyloggingpp icon indicating copy to clipboard operation
easyloggingpp copied to clipboard

Qt 6.4.0 easylogging++.h:444: error: QLinkedList: No such file or directory

Open DmitryDemidov80 opened this issue 2 years ago • 1 comments

Hi! I try compile my project on Qt 6.4.0 but failed. I added QT += core5compat to my .pro-file but it didn't help.

easyloggingpp/src/easylogging++.h:444:13: fatal error: QLinkedList: No such file or directory 444 | # include <QLinkedList>

How to fix it? Thanks!

DmitryDemidov80 avatar Oct 13 '22 18:10 DmitryDemidov80

Hi!

I compiled with the latest version of easylogging and Qt 6.4.0

Configuration:

  1. pro file
greaterThan(QT_MAJOR_VERSION, 5): QT += core5compat
DEFINES += \
	ELPP_QT_LOGGING \
	ELPP_STRICT_SIZE_CHECK ELPP_UNICODE \
	ELPP_MULTI_LOGGER_SUPPORT \
	ELPP_THREAD_SAFE \
	ELPP_UNICODE \
	ELPP_NO_DEFAULT_LOG_FILE \
	AUTO_INITIALIZE_EASYLOGGINGPP
  1. Change #include <QString> to #include <QStringRef>
  2. // ELPP_ITERATOR_CONTAINER_LOG_ONE_ARG(QList)

Hope that helps

ghost avatar Oct 22 '22 18:10 ghost