Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qmake writes same named cpp files in one object file

Qmake writes same named cpp files in one object file

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 1.5k 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.
  • N Offline
    N Offline
    nurupo
    wrote on last edited by
    #1

    Two cpp files with same name get written in the same object file by qmake.
    Is it possible to fix this without renaming the files?

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      qmake does not create object files.

      (Z(:^

      1 Reply Last reply
      0
      • N Offline
        N Offline
        nurupo
        wrote on last edited by
        #3

        It indeed doesn't, but qmake specifies them to be written in the same object file. qmake generates a make file which uses cpp/hpp filenames for object files' names.

        It would be nice if there was an option for qmake to generate make file with object files being created not in a single directory, as it is by default, but rather preserving source files' directory tree.
        Or just dump all object files in one directory as it does now, but uniquely identify them, for example, by perpending namespaces to the filename of object files.

        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