Solved Compile Link
-
Using a Non-Qt Project > Plain C++ Application on Comunity Version at Ubuntu 19.04.
I have to compile using:
g++ main.cpp -lsqlite3
The question is where do I insert the link option "-lsqlite3" on Qt? -
Hi, and welcome!
@PietroP said in Compile Link:
g++ main.cpp -lsqlite3
The question is where do I insert the link option "-lsqlite3" on Qt?You add the library to your project: https://doc.qt.io/qtcreator/creator-project-qmake-libraries.html
If you're using the qmake build system, you can just add
LIBS += -lsqlite3
to your *.pro file.Note: Qt is a C++ library. Qt Creator is an IDE.
-
@JKSH said in Compile Link:
LIBS += -lsqlite3
Works perfectly with
LIBS += -lsqlite3
Thank you a lot! -
@PietroP please don't forget to mark your post as solved! Thanks