Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Two instances of g++ delivered with Qt?
QtWS25 Last Chance

Two instances of g++ delivered with Qt?

Scheduled Pinned Locked Moved Qt Creator and other tools
3 Posts 2 Posters 1.5k 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.
  • mzimmersM Offline
    mzimmersM Offline
    mzimmers
    wrote on last edited by
    #1

    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
    0
    • G Offline
      G Offline
      gmaro
      wrote on last edited by
      #2

      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
      0
      • mzimmersM Offline
        mzimmersM Offline
        mzimmers
        wrote on last edited by
        #3

        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
        0

        • Login

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