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. How does Qt Creator link different object files/libs in default?
Forum Updated to NodeBB v4.3 + New Features

How does Qt Creator link different object files/libs in default?

Scheduled Pinned Locked Moved Solved General and Desktop
3 Posts 3 Posters 799 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.
  • Q Offline
    Q Offline
    qtpi
    wrote on last edited by A Former User
    #1

    I am wondering if making a project, how does qt creator link these files? Or will qt creator create any static/dynamic libs?
    what is the default setting? simply create relocatable object file for every cpp file and then link them together?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Qt Creator does no such things, it's "just" an IDE. The compiler/linker from your platform will do the work.

      What will be generated will depend on your project i.e. if it's an application, a lib etc. You can check the TEMPLATE variable in qmake's documentation.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      4
      • Pradeep KumarP Offline
        Pradeep KumarP Offline
        Pradeep Kumar
        wrote on last edited by
        #3

        Hi,

        Depending on the information in .pro file(project file). qmake creates the make file.

        If you want to create the library use

        TEMPLATE += lib

        or
        want to create the app

        TEMPLATE += app

        in .pro file

        Thanks,

        Pradeep Kumar
        Qt,QML Developer

        1 Reply Last reply
        3

        • Login

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