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 798 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 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?

    jsulmJ 1 Reply Last reply
    0
    • K Knj.Tkm

      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?

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      2
      • jsulmJ jsulm

        @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 last edited by
        #3

        @jsulm
        OK I know, thanks.

        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