How to resolve LNK2019 error obtained after initializing the web engine and writing code to load a web page?
-
Good evening to the whole community, I am working on a search engine project for android phone. In order to orient myself, I tried the code present on the official documentation https://doc.qt.io/qt-6/qml-qtwebengine-webengineview.html#details to initialize a web engine and load a web page. But when I run I get the LNK2019 error followed inevitably by the LNK1120 error. Firstly, I looked at the documentation code for the main.cpp and main.qml files and everything was normal. Then I searched the internet for how to resolve this error, and I was asked to use vcpkg, but I don't really see the importance. I don't know if this is a documentation code error or something else. I therefore ask for your help for those who may have already dealt with this.
The error text is the follow:
LNK2019:external symbol not resolved "_declspec(dllimport) void_cdecl -----QtWebEngineQuick::initialize(void)"(imp?
initialize@QtWebEngineQuick@@YAXXZ)r,f,renc, in the main function
main.obj
I look forward to your answers. Thank you! -
@gouneken said in How to resolve LNK2019 error obtained after initializing the web engine and writing code to load a web page?:
I displayed an image containing the error messages
You should post errors as text, not images. This makes it easier for others to search on the internet or translate the error messages if those are not in English (like in your case).