Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Compile Link
Forum Updated to NodeBB v4.3 + New Features

Compile Link

Scheduled Pinned Locked Moved Solved General and Desktop
4 Posts 3 Posters 468 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    PietroP
    wrote on last edited by
    #1

    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?

    JKSHJ 1 Reply Last reply
    0
    • P PietroP

      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?

      JKSHJ Offline
      JKSHJ Offline
      JKSH
      Moderators
      wrote on last edited by
      #2

      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.

      Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

      1 Reply Last reply
      5
      • P Offline
        P Offline
        PietroP
        wrote on last edited by
        #3

        @JKSH said in Compile Link:

        LIBS += -lsqlite3

        Works perfectly with
        LIBS += -lsqlite3
        Thank you a lot!

        Pablo J. RoginaP 1 Reply Last reply
        1
        • P PietroP

          @JKSH said in Compile Link:

          LIBS += -lsqlite3

          Works perfectly with
          LIBS += -lsqlite3
          Thank you a lot!

          Pablo J. RoginaP Offline
          Pablo J. RoginaP Offline
          Pablo J. Rogina
          wrote on last edited by
          #4

          @PietroP please don't forget to mark your post as solved! Thanks

          Upvote the answer(s) that helped you solve the issue
          Use "Topic Tools" button to mark your post as Solved
          Add screenshots via postimage.org
          Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved