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. [SOLVED] Qt 5.0.1 mingw error
Forum Updated to NodeBB v4.3 + New Features

[SOLVED] Qt 5.0.1 mingw error

Scheduled Pinned Locked Moved General and Desktop
9 Posts 4 Posters 6.0k 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.
  • C Offline
    C Offline
    Code_ReaQtor
    wrote on last edited by
    #1

    Hi!

    I downloaded the newly released "Qt 5.0.1 mingw":http://releases.qt-project.org/qt5/5.0.1/qt-windows-opensource-5.0.1-mingw47_32-x86-offline.exe and tried to run the examples.

    Unfortunately, I am getting error

    @cc1plus.exe: error: unrecognized command line option "-fno-keep-inline-dllexport"@

    What is the solution for this?

    Please visit my open-source projects at https://github.com/Code-ReaQtor.

    1 Reply Last reply
    0
    • S Offline
      S Offline
      sahumada
      wrote on last edited by
      #2

      which example are you compiling ? Windows 7 ?

      Sergio Ahumada

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Code_ReaQtor
        wrote on last edited by
        #3

        I tried 5 of them but they still "throw" the same error so I stopped, thinking that it will actually happen to all of them regardless of simplicity or complexity of the examples. Here is the list:

        • application example
        • basic layouts example
        • border layout example
        • camera
        • youtubeview

        BTW. I am using windows 7 32-bit

        EDIT: Just to add up, even a normal create new Gui Application in Qt Creator cannot be compiled and throws the same error. AFAIK, mingw4.7 is packaged with Qt 5.0.1 ...and Qt Creator detects it as usual.

        Please visit my open-source projects at https://github.com/Code-ReaQtor.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          MuldeR
          wrote on last edited by
          #4

          Do you us an up-to-date MinGW ???
          http://sourceforge.net/projects/mingwbuilds/files/host-windows/releases/4.7.2/32-bit/threads-posix/sjlj/x32-4.7.2-release-posix-sjlj-rev8.7z/download

          You can also try to edit "mkspecs/win32-g++/qmake.conf" and remove the problematic option from CFLAGS.

          My OpenSource software at: http://muldersoft.com/

          Qt v4.8.6 MSVC 2013, static/shared: http://goo.gl/BXqhrS

          Go visit the coop: http://youtu.be/Jay...

          1 Reply Last reply
          0
          • C Offline
            C Offline
            Code_ReaQtor
            wrote on last edited by
            #5

            [quote author="MuldeR" date="1359684251"]Do you us an up-to-date MinGW ???
            [/quote]

            I think it is already packaged with Qt 5.0.1.

            [quote author="MuldeR" date="1359684251"]
            You can also try to edit "mkspecs/win32-g++/qmake.conf" and remove the problematic option from CFLAGS.[/quote]

            More errors! Should I post the output here?

            Please visit my open-source projects at https://github.com/Code-ReaQtor.

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Code_ReaQtor
              wrote on last edited by
              #6

              I solved it now. Might be a bug in Qt Creator "using" the wrong MinGW compiler added somewhere in my C:/Perl/site/bin/g++.exe which is actually a MinGW 4.4.

              I can't reset it since it was "auto-detected" so what I did was to "clone" it and link it to the right compiler packaged with Qt 5.0.1.

              Thanks for the help. It gave me a clue!

              Please visit my open-source projects at https://github.com/Code-ReaQtor.

              1 Reply Last reply
              0
              • S Offline
                S Offline
                sahumada
                wrote on last edited by
                #7

                fwiw .. I tested the examples on Windows 7 using 5.0.1 and they all work :) it seems like you found the root cause .. great !

                Sergio Ahumada

                1 Reply Last reply
                0
                • I Offline
                  I Offline
                  imoir
                  wrote on last edited by
                  #8

                  Thanks for this info. I had the same problem and your info helped me out. Has this bug been reported?

                  1 Reply Last reply
                  0
                  • C Offline
                    C Offline
                    Code_ReaQtor
                    wrote on last edited by
                    #9

                    [quote author="imoir" date="1361584798"]Thanks for this info. I had the same problem and your info helped me out. Has this bug been reported?[/quote]

                    Not yet... Sorry but I am too preoccupied right now. If you have "free time", PLEASE feel free to report it. Thanks.

                    Please visit my open-source projects at https://github.com/Code-ReaQtor.

                    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