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 can i add libs in QtCreator ?
Forum Updated to NodeBB v4.3 + New Features

How can i add libs in QtCreator ?

Scheduled Pinned Locked Moved Solved General and Desktop
5 Posts 2 Posters 481 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.
  • T Offline
    T Offline
    Thim
    wrote on 16 May 2019, 07:17 last edited by
    #1

    When i was using G++ i was able to add libs at the compilation w/ for exemple ->

    g++ -std=c++11 -Wall -c xxx.cpp
    g++ -Wall -o xxx.exe xxx.o -lgdi32 -lmsimg32
    

    i'm now using QtCretor but don't know where can i add the -lgdi32 and -lmsimg32 libs.
    Thanks for yout help.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mrjj
      Lifetime Qt Champion
      wrote on 16 May 2019, 07:22 last edited by
      #2

      Hi
      You can add it to the .pro file.
      https://doc.qt.io/qt-5/third-party-libraries.html

      gdi32 might work with just
      LIBS += -lGdi32

      1 Reply Last reply
      3
      • T Offline
        T Offline
        Thim
        wrote on 16 May 2019, 07:28 last edited by
        #3

        i have try this ->

        LIBS += -lGdi32 \
        -lmsimg32
        

        but that still doesn't work :////

        M 1 Reply Last reply 16 May 2019, 07:36
        0
        • T Thim
          16 May 2019, 07:28

          i have try this ->

          LIBS += -lGdi32 \
          -lmsimg32
          

          but that still doesn't work :////

          M Offline
          M Offline
          mrjj
          Lifetime Qt Champion
          wrote on 16 May 2019, 07:36 last edited by aha_1980
          #4

          Hi
          what is msimg32 ?
          also did you run qmake after adding to .pro file?

          should work with

          LIBS += -lGdi32
          LIBS += -lmsimg32

          clean all. run qmake. rebuild al

          1 Reply Last reply
          2
          • T Offline
            T Offline
            Thim
            wrote on 16 May 2019, 08:16 last edited by
            #5

            That's work ! thx

            1 Reply Last reply
            1

            1/5

            16 May 2019, 07:17

            • Login

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