Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DmitryDemidov80 opened this issue Oct 13, 2022 · 1 comment

Comments

@DmitryDemidov80
Copy link

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

How to fix it? Thanks!

@ghost
Copy link

ghost commented Oct 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant