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. [Resolved]Using .obj in QT Creator

[Resolved]Using .obj in QT Creator

Scheduled Pinned Locked Moved General and Desktop
5 Posts 2 Posters 3.2k Views 1 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.
  • I Offline
    I Offline
    Ivan1120
    wrote on last edited by
    #1

    Does anybody know how to let QT Creator can refer .obj file from visual studio while Compiler is building !??

    1 Reply Last reply
    0
    • C Offline
      C Offline
      ChrisW67
      wrote on last edited by
      #2

      Qt is a library. Qt has nothing to do with what your compiler, linker and tool chain will accept.

      Perhaps you can rephrase the question and provide some detail on what the problem is.

      1 Reply Last reply
      0
      • I Offline
        I Offline
        Ivan1120
        wrote on last edited by
        #3

        Oh.. sorry about my article, I have already modified.Does anybody know!?

        1 Reply Last reply
        0
        • C Offline
          C Offline
          ChrisW67
          wrote on last edited by
          #4

          What do you want Qt Creator to do with an object file created by Microsoft Visual Studio? Object files are the output of compilers and the input to linkers, not input for a glorified text editor.

          If you want to link an already compiled object file (*.OBJ) into your program then you need to add it to the arguments passed to your Microsoft linker. If you are using qmake then you can do this with your PRO file LIBS variable.
          @
          LIBS += C:/full/path/to/the/object_file.obj
          @
          A relative path can work if you put the pre-existing OBJ file in the right place. It is an unusual thing to do though.

          If you are using MinGW, i.e. not using a Microsoft compiler, then you need to build the object file from source to get a compatible object file.

          1 Reply Last reply
          0
          • I Offline
            I Offline
            Ivan1120
            wrote on last edited by
            #5

            Yes, your answer is I want, 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