Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. Cannot recompile on Windows, undefined reference to `__getreent'
Forum Updated to NodeBB v4.3 + New Features

Cannot recompile on Windows, undefined reference to `__getreent'

Scheduled Pinned Locked Moved Installation and Deployment
8 Posts 4 Posters 10.6k 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.
  • A Offline
    A Offline
    aheirich
    wrote on last edited by
    #1

    I'm trying to use Qt on Windows. I found that the Windows binaries are built without rtti enabled. I cannot use them to build the diagram example in chapter 8 of the Qt book (C++ Gui programming with Qt4) because of the lack of rtti. So I am trying to rebuild with rtti enabled.

    But I cannot build, I get a lot of undefined references to __getreent. Can anyone advise what to do?

    ===============================================
    c:\Qt\2010.05\qt\src>mingw32-make
    cd tools\bootstrap\ && mingw32-make -f Makefile
    mingw32-make[1]: Entering directory c:/Qt/2010.05/qt/src/tools/bootstrap' mingw32-make -f Makefile.Release mingw32-make[2]: Entering directory c:/Qt/2010.05/qt/src/tools/bootstrap'
    mingw32-make[2]: Nothing to be done for first'. mingw32-make[2]: Leaving directory c:/Qt/2010.05/qt/src/tools/bootstrap'
    mingw32-make[1]: Leaving directory c:/Qt/2010.05/qt/src/tools/bootstrap' cd tools\moc\ && mingw32-make -f Makefile mingw32-make[1]: Entering directory c:/Qt/2010.05/qt/src/tools/moc'
    mingw32-make -f Makefile.Release
    mingw32-make[2]: Entering directory c:/Qt/2010.05/qt/src/tools/moc' g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-rel oc -Wl,-s -Wl,-subsystem,console -mthreads -Wl -o ../../../bin/moc.exe release/m oc.o release/preprocessor.o release/generator.o release/parser.o release/token.o release/main.o -L'c:/Qt/2010.05/qt/src/tools/bootstrap/release' -lbootstrap -l user32 release/preprocessor.o:preprocessor.cpp:(.text+0x4670): undefined reference to
    QFile::open(__sFILE64*, QFlagsQIODevice::OpenModeFlag)'
    release/parser.o:parser.cpp:(.text+0x2d1): undefined reference to __getreent' release/main.o:main.cpp:(.text+0xf): undefined reference to __getreent'
    release/main.o:main.cpp:(.text+0x2b): undefined reference to __getreent' release/main.o:main.cpp:(.text+0x2231): undefined reference to __getreent'
    release/main.o:main.cpp:(.text+0x33fe): undefined reference to __getreent' release/main.o:main.cpp:(.text+0x3689): more undefined references to __getreent
    ' follow
    collect2: ld returned 1 exit status
    mingw32-make[2]: *** [../../../bin/moc.exe] Error 1
    mingw32-make[2]: Leaving directory c:/Qt/2010.05/qt/src/tools/moc' mingw32-make[1]: *** [release] Error 2 mingw32-make[1]: Leaving directory c:/Qt/2010.05/qt/src/tools/moc'
    mingw32-make: *** [sub-moc-make_default] Error 2

    c:\Qt\2010.05\qt\src>

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      Which mingw version is that? How did you configure Qt?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0
      • V Offline
        V Offline
        vsorokin
        wrote on last edited by
        #3

        peppe, Obviously mingw32 version from Qt SDK 2010.05 :) but configuration flags is really interesting.

        --
        Vasiliy

        1 Reply Last reply
        0
        • D Offline
          D Offline
          dangelog
          wrote on last edited by
          #4

          [quote author="Vass" date="1293580988"]peppe, Obviously mingw32 version from Qt SDK 2010.05 :) but configuration flags is really interesting.[/quote]

          Which is? :)

          (=> not a windows user)

          Software Engineer
          KDAB (UK) Ltd., a KDAB Group company

          1 Reply Last reply
          0
          • V Offline
            V Offline
            vsorokin
            wrote on last edited by
            #5

            peppe, I'm too not a windows user, but I saw on mingw site, mingw not updated from august and current version 1.0 as I understand.

            --
            Vasiliy

            1 Reply Last reply
            0
            • A Offline
              A Offline
              aheirich
              wrote on last edited by
              #6

              I was trying to build under Cygwin(using minge32-make), that explains a lot ofmy problems. Right now it is building under the mingw32 prompt, crossing my fingers.

              1 Reply Last reply
              0
              • M Offline
                M Offline
                mohsen
                wrote on last edited by
                #7

                For windows you may download compiled binaries for VS2008.

                1 Reply Last reply
                0
                • A Offline
                  A Offline
                  aheirich
                  wrote on last edited by
                  #8

                  I can build and run my program now, thanks to using mingw32 for everything. I was mistaken to think I could use Cygwin.

                  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