Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. What is the obj file that is created during the build?

What is the obj file that is created during the build?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 2 Posters 633 Views
  • 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.
  • K Offline
    K Offline
    Knj.Tkm
    wrote on 16 Jun 2021, 07:27 last edited by
    #1

    Hi.
    What is the .obj file that is created at build time?
    I was curious because it was created every time.

    Deleting it does not have any particular effect on the execution of the application.
    Is it better not to delete it?
    If it is something that can be removed, is there a way to prevent it from being generated at build time?

    J 1 Reply Last reply 16 Jun 2021, 09:00
    0
    • K Knj.Tkm
      16 Jun 2021, 07:27

      Hi.
      What is the .obj file that is created at build time?
      I was curious because it was created every time.

      Deleting it does not have any particular effect on the execution of the application.
      Is it better not to delete it?
      If it is something that can be removed, is there a way to prevent it from being generated at build time?

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 16 Jun 2021, 09:00 last edited by jsulm
      #2

      @Knj-Tkm *.obj files are objects files created by compiler for every cpp file:

      some.cpp -> some.obj
      

      These files are then linked by linker into the executable or library. Afterwards they are not needed. But there is really no need to delete them manually. If you will delete them your build will take longer as every cpp file needs to be compiled again even if nothing was changed there. When deploying your app no need to deploy object files.

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      K 1 Reply Last reply 17 Jun 2021, 01:29
      2
      • J jsulm
        16 Jun 2021, 09:00

        @Knj-Tkm *.obj files are objects files created by compiler for every cpp file:

        some.cpp -> some.obj
        

        These files are then linked by linker into the executable or library. Afterwards they are not needed. But there is really no need to delete them manually. If you will delete them your build will take longer as every cpp file needs to be compiled again even if nothing was changed there. When deploying your app no need to deploy object files.

        K Offline
        K Offline
        Knj.Tkm
        wrote on 17 Jun 2021, 01:29 last edited by
        #3

        @jsulm
        OK I know, thanks.

        1 Reply Last reply
        0

        3/3

        17 Jun 2021, 01:29

        • Login

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