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. Mingw32 undefined reference
QtWS25 Last Chance

Mingw32 undefined reference

Scheduled Pinned Locked Moved Solved General and Desktop
41 Posts 6 Posters 7.4k 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.
  • D Offline
    D Offline
    Dre4m
    wrote on last edited by
    #1

    Hello,
    Im pretty new to Qt and i have encountered problem. I've made my project using MinGW 64-bit and recently it looks like i will aim for 32-bit platform so i tried to build my project using 32-bit MinGW, instaled with maintanance tool, but it turned out to be not working at all . It throws a lot of undefined refernce errors , i mean a lot of them , so i tried to run a simple example(from qt creator inside examples) using this configuration and it throws same "package" of errors.Any idea what i might did wrong ?Made ss of my configuration and errors and put in links below
    0_1550737741083_518ef5ea-6caf-4588-91af-9c542075ce3d-obraz.png

    0_1550737855353_07791583-a2cd-4e2f-a5bd-a027ae032fa0-obraz.png

    Kind regard
    Simon

    RatzzR 1 Reply Last reply
    0
    • D Dre4m

      Hello,
      Im pretty new to Qt and i have encountered problem. I've made my project using MinGW 64-bit and recently it looks like i will aim for 32-bit platform so i tried to build my project using 32-bit MinGW, instaled with maintanance tool, but it turned out to be not working at all . It throws a lot of undefined refernce errors , i mean a lot of them , so i tried to run a simple example(from qt creator inside examples) using this configuration and it throws same "package" of errors.Any idea what i might did wrong ?Made ss of my configuration and errors and put in links below
      0_1550737741083_518ef5ea-6caf-4588-91af-9c542075ce3d-obraz.png

      0_1550737855353_07791583-a2cd-4e2f-a5bd-a027ae032fa0-obraz.png

      Kind regard
      Simon

      RatzzR Offline
      RatzzR Offline
      Ratzz
      wrote on last edited by Ratzz
      #2

      @Dre4m
      Hi and welcome,
      Can you clean project , run qmake and rebuild ?

      --Alles ist gut.

      D 1 Reply Last reply
      1
      • RatzzR Ratzz

        @Dre4m
        Hi and welcome,
        Can you clean project , run qmake and rebuild ?

        D Offline
        D Offline
        Dre4m
        wrote on last edited by
        #3

        @Ratzz
        after clean project and and qmake run
        0_1550738970954_e6989616-e84a-48af-99e8-f2f4da97e3dd-obraz.png

        RatzzR 1 Reply Last reply
        0
        • D Dre4m

          @Ratzz
          after clean project and and qmake run
          0_1550738970954_e6989616-e84a-48af-99e8-f2f4da97e3dd-obraz.png

          RatzzR Offline
          RatzzR Offline
          Ratzz
          wrote on last edited by
          #4

          @Dre4m
          Is there any error after rebuild?

          --Alles ist gut.

          1 Reply Last reply
          0
          • D Offline
            D Offline
            Dre4m
            wrote on last edited by Dre4m
            #5

            0_1550739317207_49a8148a-1b3d-4015-8973-d5ceeab21b24-obraz.png

            those errors appears while im using debug option, when i build on relase option all is fine

            RatzzR 1 Reply Last reply
            0
            • D Dre4m

              0_1550739317207_49a8148a-1b3d-4015-8973-d5ceeab21b24-obraz.png

              those errors appears while im using debug option, when i build on relase option all is fine

              RatzzR Offline
              RatzzR Offline
              Ratzz
              wrote on last edited by Ratzz
              #6

              @Dre4m
              Did you edit the target path ?
              Also can you create a small sample and try?

              --Alles ist gut.

              RatzzR 1 Reply Last reply
              1
              • D Offline
                D Offline
                Dre4m
                wrote on last edited by Dre4m
                #7

                target path is like that
                0_1550740821226_d2ae4a33-8bff-4344-bdc3-e2f5c6865588-obraz.png

                well sorry but i dont really understand the sample part.

                1 Reply Last reply
                0
                • RatzzR Ratzz

                  @Dre4m
                  Did you edit the target path ?
                  Also can you create a small sample and try?

                  RatzzR Offline
                  RatzzR Offline
                  Ratzz
                  wrote on last edited by
                  #8

                  @Ratzz said in Mingw32 undefined reference:

                  Also can you create a small sample and try?

                  Can you try ?

                  --Alles ist gut.

                  D 1 Reply Last reply
                  0
                  • RatzzR Ratzz

                    @Ratzz said in Mingw32 undefined reference:

                    Also can you create a small sample and try?

                    Can you try ?

                    D Offline
                    D Offline
                    Dre4m
                    wrote on last edited by
                    #9

                    @Ratzz
                    I would love to but i dont understand what sample should i make or how to be specific.

                    RatzzR 1 Reply Last reply
                    0
                    • D Dre4m

                      @Ratzz
                      I would love to but i dont understand what sample should i make or how to be specific.

                      RatzzR Offline
                      RatzzR Offline
                      Ratzz
                      wrote on last edited by Ratzz
                      #10

                      @Dre4m
                      Just make an empty project and run it.
                      File->newproject->Application->Qt Widget Application

                      --Alles ist gut.

                      1 Reply Last reply
                      2
                      • D Offline
                        D Offline
                        Dre4m
                        wrote on last edited by Dre4m
                        #11

                        0_1550742336597_922b586e-64b9-415c-a802-16f1c86789d4-obraz.png
                        and its perfectly working while using MinGW 64-bit, is it possible that during installation of mingw 32 something went wrong, or i dont know linker is using mingw64 or something like that ?

                        RatzzR 1 Reply Last reply
                        0
                        • D Dre4m

                          0_1550742336597_922b586e-64b9-415c-a802-16f1c86789d4-obraz.png
                          and its perfectly working while using MinGW 64-bit, is it possible that during installation of mingw 32 something went wrong, or i dont know linker is using mingw64 or something like that ?

                          RatzzR Offline
                          RatzzR Offline
                          Ratzz
                          wrote on last edited by Ratzz
                          #12

                          @Dre4m
                          How did you install Qt? And what version and configuration did you select?

                          @Dre4m said in Mingw32 undefined reference:

                          instaled with maintanance tool,

                          And what does this mean?

                          --Alles ist gut.

                          1 Reply Last reply
                          0
                          • D Offline
                            D Offline
                            Dre4m
                            wrote on last edited by
                            #13

                            0_1550743814981_009fc415-f59e-430f-b5f3-725a2dc75554-obraz.png
                            just like that

                            RatzzR 1 Reply Last reply
                            0
                            • D Dre4m

                              0_1550743814981_009fc415-f59e-430f-b5f3-725a2dc75554-obraz.png
                              just like that

                              RatzzR Offline
                              RatzzR Offline
                              Ratzz
                              wrote on last edited by
                              #14

                              @Dre4m
                              Can you show kits configuration for MinGW 32 bit and MinGW 64 bit.
                              also Qt has MinGW 32 bit .

                              --Alles ist gut.

                              1 Reply Last reply
                              1
                              • D Offline
                                D Offline
                                Dre4m
                                wrote on last edited by
                                #15

                                0_1550745653662_33e37a03-31b6-47fa-bd5d-5380a332343b-obraz.png
                                for mingw 32
                                0_1550746081402_bdc86562-2655-4cb2-9d8d-c560d7ff0b5c-obraz.png
                                for mingw 64

                                1 Reply Last reply
                                0
                                • D Offline
                                  D Offline
                                  Dre4m
                                  wrote on last edited by
                                  #16

                                  any idea?

                                  jsulmJ 1 Reply Last reply
                                  0
                                  • D Dre4m

                                    any idea?

                                    jsulmJ Online
                                    jsulmJ Online
                                    jsulm
                                    Lifetime Qt Champion
                                    wrote on last edited by
                                    #17

                                    @Dre4m What I can see is that your 32bit compiler is 5.3.0 and the 64bit one is 7.3.0
                                    Can you try to install 32bit 7.3.0 compiler?

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

                                    1 Reply Last reply
                                    0
                                    • D Offline
                                      D Offline
                                      Dre4m
                                      wrote on last edited by
                                      #18

                                      For this setting of MinGW32 bit :
                                      0_1551248273259_a7ac3f32-9f53-44ff-8865-642fd5aba8f8-obraz.png
                                      i get those error while trying to build :
                                      0_1551248356553_ee20b743-8678-4fed-aa50-f20127384645-obraz.png

                                      any idea what can be wrong ?
                                      64bit version is working perfectly.

                                      jsulmJ 2 Replies Last reply
                                      0
                                      • D Dre4m

                                        For this setting of MinGW32 bit :
                                        0_1551248273259_a7ac3f32-9f53-44ff-8865-642fd5aba8f8-obraz.png
                                        i get those error while trying to build :
                                        0_1551248356553_ee20b743-8678-4fed-aa50-f20127384645-obraz.png

                                        any idea what can be wrong ?
                                        64bit version is working perfectly.

                                        jsulmJ Online
                                        jsulmJ Online
                                        jsulm
                                        Lifetime Qt Champion
                                        wrote on last edited by jsulm
                                        #19

                                        @Dre4m Can you copy paste the error messages instead of posting a screen shot? And it should contain the first error.
                                        Also please post your pro file.

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

                                        1 Reply Last reply
                                        1
                                        • D Dre4m

                                          For this setting of MinGW32 bit :
                                          0_1551248273259_a7ac3f32-9f53-44ff-8865-642fd5aba8f8-obraz.png
                                          i get those error while trying to build :
                                          0_1551248356553_ee20b743-8678-4fed-aa50-f20127384645-obraz.png

                                          any idea what can be wrong ?
                                          64bit version is working perfectly.

                                          jsulmJ Online
                                          jsulmJ Online
                                          jsulm
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #20

                                          @Dre4m One more note: when switching to another Kit (or modifying existing one) please delete build directory, run qmake and build.

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

                                          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