Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Two instances of g++ delivered with Qt?

    Tools
    2
    3
    1371
    Loading More Posts
    • 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.
    • mzimmers
      mzimmers last edited by

      Hi -

      I just noticed that Creator is finding two instances of g++:

      • QtSDK\mingw\bin\mingw32-g++.exe
      • QtSDK\mingw\bin\g++.exe

      did it come this way? I just downloaded the "standard" version of Qt (didn't build it myself or anything).

      do I need both versions? (I like to keep things minimal)

      if I don't need both, what's the safe way to delete one of them?

      Thanks.

      1 Reply Last reply Reply Quote 0
      • G
        gmaro last edited by

        Hi,

        Answer from "mingw faq":http://www.mingw.org/wiki/FAQ exaplains that quite well.
        [quote author="mingw faq" date="1334286019"]
        What's the difference between gcc and mingw32-gcc?
        The mingw32-gcc, mingw32-g++, etc. binaries exist as an aid to cross development. They are created in a typical build of gcc. They are therefore distributed as the maintainers of GCC meant them to be. The gcc.exe indicates that the binary produces binaries for a target equal to the build, while the mingw32-gcc binary produces binaries to be executed on the mingw32 target.
        [/quote]

        1 Reply Last reply Reply Quote 0
        • mzimmers
          mzimmers last edited by

          I need to return to this question, though it's been a few months.

          If I understand the explanation, when I'm using Qt to build an app for the same platform from which I'm running Qt, I want gcc.exe (or, presumably, g++.exe).

          If this assumption is correct, how do I tell my project that I want to choose g++.exe over mingw32-g++.exe? I suspect this is causing me some compile issues.

          Does the solution entail using the QMAKE_CXX variable in my .pro file?

          Thank you.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post