How to install GCC on Windows 7












10















I've downloaded GCC 4.5.1 and do not know what to do next. I've found instructions inside the Install directory for how to configure, build and install, but I still cannot do much with this. What are step-by-step instructions for how am I supposed to go through this process?



For example, they say something like this:



    % mkdir objdir
% cd objdir
% srcdir/configure [options] [target]


And I do understand that the first line creates a directory and the second goes into the directory. But what about third line, and how am I supposed to execute this? Am I supposed to go to source directory and type configure + options + target?










share|improve this question





























    10















    I've downloaded GCC 4.5.1 and do not know what to do next. I've found instructions inside the Install directory for how to configure, build and install, but I still cannot do much with this. What are step-by-step instructions for how am I supposed to go through this process?



    For example, they say something like this:



        % mkdir objdir
    % cd objdir
    % srcdir/configure [options] [target]


    And I do understand that the first line creates a directory and the second goes into the directory. But what about third line, and how am I supposed to execute this? Am I supposed to go to source directory and type configure + options + target?










    share|improve this question



























      10












      10








      10


      1






      I've downloaded GCC 4.5.1 and do not know what to do next. I've found instructions inside the Install directory for how to configure, build and install, but I still cannot do much with this. What are step-by-step instructions for how am I supposed to go through this process?



      For example, they say something like this:



          % mkdir objdir
      % cd objdir
      % srcdir/configure [options] [target]


      And I do understand that the first line creates a directory and the second goes into the directory. But what about third line, and how am I supposed to execute this? Am I supposed to go to source directory and type configure + options + target?










      share|improve this question
















      I've downloaded GCC 4.5.1 and do not know what to do next. I've found instructions inside the Install directory for how to configure, build and install, but I still cannot do much with this. What are step-by-step instructions for how am I supposed to go through this process?



      For example, they say something like this:



          % mkdir objdir
      % cd objdir
      % srcdir/configure [options] [target]


      And I do understand that the first line creates a directory and the second goes into the directory. But what about third line, and how am I supposed to execute this? Am I supposed to go to source directory and type configure + options + target?







      windows-7 gcc






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jan 25 at 11:00









      Peter Mortensen

      8,371166185




      8,371166185










      asked Oct 3 '10 at 8:57









      There is nothing we can doThere is nothing we can do

      2972616




      2972616






















          3 Answers
          3






          active

          oldest

          votes


















          7














          You don't install GCC like this. You use "Cygwin" or "MSYS" for this purpose (compiling). Cygwin is like a.... Linux-Windows combination? One should read the documentation. In a nutshell: You get a Bash, GCC and other stuff, but it is SLOW.



          MSYS is much better on the other hand. It provides a win32 binary of GCC and all the development tools.



          If you just want to develop, you should choose a package like this:
          http://www.codeblocks.org/downloads/26
          codeblocks-10.05mingw-setup.exe << This one.






          share|improve this answer


























          • +1 but I disagree about cygwin being SLOW. It's only slightly slower than native apps in my experience.

            – Nifle
            Oct 3 '10 at 9:10











          • Thanks it works. I wonder why is it that it is so difficult to create something in this day and age with would have user friendly interface and would be pleasure to install? Why in order to do something as trivial as installation of well known product I have to as for advice on forums? This is bad. Anyway thank you for your help.

            – There is nothing we can do
            Oct 3 '10 at 9:12











          • @A-ha: It's not like its difficult. It's more like... the people who make these applications are ... not really human. Okay, they are..but.. like.. "How comes people can't install this application from source? Even my grandma can fix compile errors.."... and ..this describes the most of them (respect for the exceptions) pretty well I guess.

            – Shiki
            Oct 3 '10 at 10:40











          • @Nifle - I don't know.. I mean.. it was much slower at me. Maybe it varies from PC to PC.. then sorry. Basically all I saw on the internetz was "Its slow". On the other hand, MSYS been always good for me. That's why I wrote that..and sorry if its not entirely true.

            – Shiki
            Oct 3 '10 at 10:41






          • 2





            @everyone: seriously, someone asks "how to install something" and you answer with: hey, donwload the source code, set up a complete Unix environment on Windows, and just compile that beast! What on earth were you people smoking? There's enough binary GCC distribution channels to not have to go through that...

            – rubenvb
            Jun 18 '11 at 9:23



















          14














          GCC for Windows is provided by two projects currently. They both provide a very own implementation of the Windows SDK (headers and libraries) which is necessary because GCC does not work with Visual Studio files.





          1. The older mingw.org, which @Mat already pointed you to. They provide only a 32-bit compiler, and the latest version is GCC 4.5 as of the time of this writing. See here for the downloads you need:




            • Binutils is the linker and resource compiler etc.

            • GCC is the compiler, and is split in core and language packages

            • GDB is the debugger.

            • runtime library is required only for mingw.org

            • You might need to download mingw32-make seperately.

            • For support, you can try (don't expect friendly replies) mingw-users@lists.sourceforge.net



          2. The newer mingw-w64, which as the name predicts, also provides a 64-bit variant. It is superior in every way to #1 above. You can install with an installer, or find the toolchain files for 32-bit and 64-bit yourself. Alternatively, you can use MSYS2 which provides a huge amount of prebuilt binary packages installable through a package manager, pacman. Note that the MSYS2 toolchains work outside of the MSYS shell just fine; using it as a package manager only is possible. A third option is to use Qt's MinGW packages, which come bundled with a toolchain. For support, send an email to mingw-w64-public@lists.sourceforge.net or the forum via sourceforge.net.



          There are a lot of "non-official" toolchain builders, one of the most popular is TDM-GCC. They may use patches that break binary compatibility with official/unpatched toolchains, so be careful using them. It's best to use the official releases (or in the case of mingw-w64, the Personal builds are easier to get started with).



          Re the other answer: Cygwin/MSYS != GCC. Using GCC does not require the other. Plain users shouldn't be compiling GCC. That process is waaay to involved and time-consuming. Enough binary distributions floating around...






          share|improve this answer


























          • What's the difference between the "v1.0", "trunk" and "ddk" snapshot packages?

            – Nate C-K
            Jul 12 '11 at 13:32






          • 1





            v1.0 is the "release" branch, trunk is recommended by the developers (fastest fixes, some features/fixes aren't in the 1.0 branch). ddk is the MinGW-w64 Driver Development Kit.

            – rubenvb
            Jul 12 '11 at 13:42











          • Thanks! I just tried this distro (the 4.6 version under "Toolchains targeting Win32/64" that you recommended) and it worked great.

            – Nate C-K
            Jul 12 '11 at 15:12











          • @Nate C-K: glad to hear it!

            – rubenvb
            Jul 12 '11 at 15:15



















          1














          GCC is available through Chocolatey:



          choco install mingw -y


          Restart the command prompt and you should be able to run gcc.






          share|improve this answer

























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f195317%2fhow-to-install-gcc-on-windows-7%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            7














            You don't install GCC like this. You use "Cygwin" or "MSYS" for this purpose (compiling). Cygwin is like a.... Linux-Windows combination? One should read the documentation. In a nutshell: You get a Bash, GCC and other stuff, but it is SLOW.



            MSYS is much better on the other hand. It provides a win32 binary of GCC and all the development tools.



            If you just want to develop, you should choose a package like this:
            http://www.codeblocks.org/downloads/26
            codeblocks-10.05mingw-setup.exe << This one.






            share|improve this answer


























            • +1 but I disagree about cygwin being SLOW. It's only slightly slower than native apps in my experience.

              – Nifle
              Oct 3 '10 at 9:10











            • Thanks it works. I wonder why is it that it is so difficult to create something in this day and age with would have user friendly interface and would be pleasure to install? Why in order to do something as trivial as installation of well known product I have to as for advice on forums? This is bad. Anyway thank you for your help.

              – There is nothing we can do
              Oct 3 '10 at 9:12











            • @A-ha: It's not like its difficult. It's more like... the people who make these applications are ... not really human. Okay, they are..but.. like.. "How comes people can't install this application from source? Even my grandma can fix compile errors.."... and ..this describes the most of them (respect for the exceptions) pretty well I guess.

              – Shiki
              Oct 3 '10 at 10:40











            • @Nifle - I don't know.. I mean.. it was much slower at me. Maybe it varies from PC to PC.. then sorry. Basically all I saw on the internetz was "Its slow". On the other hand, MSYS been always good for me. That's why I wrote that..and sorry if its not entirely true.

              – Shiki
              Oct 3 '10 at 10:41






            • 2





              @everyone: seriously, someone asks "how to install something" and you answer with: hey, donwload the source code, set up a complete Unix environment on Windows, and just compile that beast! What on earth were you people smoking? There's enough binary GCC distribution channels to not have to go through that...

              – rubenvb
              Jun 18 '11 at 9:23
















            7














            You don't install GCC like this. You use "Cygwin" or "MSYS" for this purpose (compiling). Cygwin is like a.... Linux-Windows combination? One should read the documentation. In a nutshell: You get a Bash, GCC and other stuff, but it is SLOW.



            MSYS is much better on the other hand. It provides a win32 binary of GCC and all the development tools.



            If you just want to develop, you should choose a package like this:
            http://www.codeblocks.org/downloads/26
            codeblocks-10.05mingw-setup.exe << This one.






            share|improve this answer


























            • +1 but I disagree about cygwin being SLOW. It's only slightly slower than native apps in my experience.

              – Nifle
              Oct 3 '10 at 9:10











            • Thanks it works. I wonder why is it that it is so difficult to create something in this day and age with would have user friendly interface and would be pleasure to install? Why in order to do something as trivial as installation of well known product I have to as for advice on forums? This is bad. Anyway thank you for your help.

              – There is nothing we can do
              Oct 3 '10 at 9:12











            • @A-ha: It's not like its difficult. It's more like... the people who make these applications are ... not really human. Okay, they are..but.. like.. "How comes people can't install this application from source? Even my grandma can fix compile errors.."... and ..this describes the most of them (respect for the exceptions) pretty well I guess.

              – Shiki
              Oct 3 '10 at 10:40











            • @Nifle - I don't know.. I mean.. it was much slower at me. Maybe it varies from PC to PC.. then sorry. Basically all I saw on the internetz was "Its slow". On the other hand, MSYS been always good for me. That's why I wrote that..and sorry if its not entirely true.

              – Shiki
              Oct 3 '10 at 10:41






            • 2





              @everyone: seriously, someone asks "how to install something" and you answer with: hey, donwload the source code, set up a complete Unix environment on Windows, and just compile that beast! What on earth were you people smoking? There's enough binary GCC distribution channels to not have to go through that...

              – rubenvb
              Jun 18 '11 at 9:23














            7












            7








            7







            You don't install GCC like this. You use "Cygwin" or "MSYS" for this purpose (compiling). Cygwin is like a.... Linux-Windows combination? One should read the documentation. In a nutshell: You get a Bash, GCC and other stuff, but it is SLOW.



            MSYS is much better on the other hand. It provides a win32 binary of GCC and all the development tools.



            If you just want to develop, you should choose a package like this:
            http://www.codeblocks.org/downloads/26
            codeblocks-10.05mingw-setup.exe << This one.






            share|improve this answer















            You don't install GCC like this. You use "Cygwin" or "MSYS" for this purpose (compiling). Cygwin is like a.... Linux-Windows combination? One should read the documentation. In a nutshell: You get a Bash, GCC and other stuff, but it is SLOW.



            MSYS is much better on the other hand. It provides a win32 binary of GCC and all the development tools.



            If you just want to develop, you should choose a package like this:
            http://www.codeblocks.org/downloads/26
            codeblocks-10.05mingw-setup.exe << This one.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jan 25 at 11:01









            Peter Mortensen

            8,371166185




            8,371166185










            answered Oct 3 '10 at 9:03









            ShikiShiki

            12.6k1784141




            12.6k1784141













            • +1 but I disagree about cygwin being SLOW. It's only slightly slower than native apps in my experience.

              – Nifle
              Oct 3 '10 at 9:10











            • Thanks it works. I wonder why is it that it is so difficult to create something in this day and age with would have user friendly interface and would be pleasure to install? Why in order to do something as trivial as installation of well known product I have to as for advice on forums? This is bad. Anyway thank you for your help.

              – There is nothing we can do
              Oct 3 '10 at 9:12











            • @A-ha: It's not like its difficult. It's more like... the people who make these applications are ... not really human. Okay, they are..but.. like.. "How comes people can't install this application from source? Even my grandma can fix compile errors.."... and ..this describes the most of them (respect for the exceptions) pretty well I guess.

              – Shiki
              Oct 3 '10 at 10:40











            • @Nifle - I don't know.. I mean.. it was much slower at me. Maybe it varies from PC to PC.. then sorry. Basically all I saw on the internetz was "Its slow". On the other hand, MSYS been always good for me. That's why I wrote that..and sorry if its not entirely true.

              – Shiki
              Oct 3 '10 at 10:41






            • 2





              @everyone: seriously, someone asks "how to install something" and you answer with: hey, donwload the source code, set up a complete Unix environment on Windows, and just compile that beast! What on earth were you people smoking? There's enough binary GCC distribution channels to not have to go through that...

              – rubenvb
              Jun 18 '11 at 9:23



















            • +1 but I disagree about cygwin being SLOW. It's only slightly slower than native apps in my experience.

              – Nifle
              Oct 3 '10 at 9:10











            • Thanks it works. I wonder why is it that it is so difficult to create something in this day and age with would have user friendly interface and would be pleasure to install? Why in order to do something as trivial as installation of well known product I have to as for advice on forums? This is bad. Anyway thank you for your help.

              – There is nothing we can do
              Oct 3 '10 at 9:12











            • @A-ha: It's not like its difficult. It's more like... the people who make these applications are ... not really human. Okay, they are..but.. like.. "How comes people can't install this application from source? Even my grandma can fix compile errors.."... and ..this describes the most of them (respect for the exceptions) pretty well I guess.

              – Shiki
              Oct 3 '10 at 10:40











            • @Nifle - I don't know.. I mean.. it was much slower at me. Maybe it varies from PC to PC.. then sorry. Basically all I saw on the internetz was "Its slow". On the other hand, MSYS been always good for me. That's why I wrote that..and sorry if its not entirely true.

              – Shiki
              Oct 3 '10 at 10:41






            • 2





              @everyone: seriously, someone asks "how to install something" and you answer with: hey, donwload the source code, set up a complete Unix environment on Windows, and just compile that beast! What on earth were you people smoking? There's enough binary GCC distribution channels to not have to go through that...

              – rubenvb
              Jun 18 '11 at 9:23

















            +1 but I disagree about cygwin being SLOW. It's only slightly slower than native apps in my experience.

            – Nifle
            Oct 3 '10 at 9:10





            +1 but I disagree about cygwin being SLOW. It's only slightly slower than native apps in my experience.

            – Nifle
            Oct 3 '10 at 9:10













            Thanks it works. I wonder why is it that it is so difficult to create something in this day and age with would have user friendly interface and would be pleasure to install? Why in order to do something as trivial as installation of well known product I have to as for advice on forums? This is bad. Anyway thank you for your help.

            – There is nothing we can do
            Oct 3 '10 at 9:12





            Thanks it works. I wonder why is it that it is so difficult to create something in this day and age with would have user friendly interface and would be pleasure to install? Why in order to do something as trivial as installation of well known product I have to as for advice on forums? This is bad. Anyway thank you for your help.

            – There is nothing we can do
            Oct 3 '10 at 9:12













            @A-ha: It's not like its difficult. It's more like... the people who make these applications are ... not really human. Okay, they are..but.. like.. "How comes people can't install this application from source? Even my grandma can fix compile errors.."... and ..this describes the most of them (respect for the exceptions) pretty well I guess.

            – Shiki
            Oct 3 '10 at 10:40





            @A-ha: It's not like its difficult. It's more like... the people who make these applications are ... not really human. Okay, they are..but.. like.. "How comes people can't install this application from source? Even my grandma can fix compile errors.."... and ..this describes the most of them (respect for the exceptions) pretty well I guess.

            – Shiki
            Oct 3 '10 at 10:40













            @Nifle - I don't know.. I mean.. it was much slower at me. Maybe it varies from PC to PC.. then sorry. Basically all I saw on the internetz was "Its slow". On the other hand, MSYS been always good for me. That's why I wrote that..and sorry if its not entirely true.

            – Shiki
            Oct 3 '10 at 10:41





            @Nifle - I don't know.. I mean.. it was much slower at me. Maybe it varies from PC to PC.. then sorry. Basically all I saw on the internetz was "Its slow". On the other hand, MSYS been always good for me. That's why I wrote that..and sorry if its not entirely true.

            – Shiki
            Oct 3 '10 at 10:41




            2




            2





            @everyone: seriously, someone asks "how to install something" and you answer with: hey, donwload the source code, set up a complete Unix environment on Windows, and just compile that beast! What on earth were you people smoking? There's enough binary GCC distribution channels to not have to go through that...

            – rubenvb
            Jun 18 '11 at 9:23





            @everyone: seriously, someone asks "how to install something" and you answer with: hey, donwload the source code, set up a complete Unix environment on Windows, and just compile that beast! What on earth were you people smoking? There's enough binary GCC distribution channels to not have to go through that...

            – rubenvb
            Jun 18 '11 at 9:23













            14














            GCC for Windows is provided by two projects currently. They both provide a very own implementation of the Windows SDK (headers and libraries) which is necessary because GCC does not work with Visual Studio files.





            1. The older mingw.org, which @Mat already pointed you to. They provide only a 32-bit compiler, and the latest version is GCC 4.5 as of the time of this writing. See here for the downloads you need:




              • Binutils is the linker and resource compiler etc.

              • GCC is the compiler, and is split in core and language packages

              • GDB is the debugger.

              • runtime library is required only for mingw.org

              • You might need to download mingw32-make seperately.

              • For support, you can try (don't expect friendly replies) mingw-users@lists.sourceforge.net



            2. The newer mingw-w64, which as the name predicts, also provides a 64-bit variant. It is superior in every way to #1 above. You can install with an installer, or find the toolchain files for 32-bit and 64-bit yourself. Alternatively, you can use MSYS2 which provides a huge amount of prebuilt binary packages installable through a package manager, pacman. Note that the MSYS2 toolchains work outside of the MSYS shell just fine; using it as a package manager only is possible. A third option is to use Qt's MinGW packages, which come bundled with a toolchain. For support, send an email to mingw-w64-public@lists.sourceforge.net or the forum via sourceforge.net.



            There are a lot of "non-official" toolchain builders, one of the most popular is TDM-GCC. They may use patches that break binary compatibility with official/unpatched toolchains, so be careful using them. It's best to use the official releases (or in the case of mingw-w64, the Personal builds are easier to get started with).



            Re the other answer: Cygwin/MSYS != GCC. Using GCC does not require the other. Plain users shouldn't be compiling GCC. That process is waaay to involved and time-consuming. Enough binary distributions floating around...






            share|improve this answer


























            • What's the difference between the "v1.0", "trunk" and "ddk" snapshot packages?

              – Nate C-K
              Jul 12 '11 at 13:32






            • 1





              v1.0 is the "release" branch, trunk is recommended by the developers (fastest fixes, some features/fixes aren't in the 1.0 branch). ddk is the MinGW-w64 Driver Development Kit.

              – rubenvb
              Jul 12 '11 at 13:42











            • Thanks! I just tried this distro (the 4.6 version under "Toolchains targeting Win32/64" that you recommended) and it worked great.

              – Nate C-K
              Jul 12 '11 at 15:12











            • @Nate C-K: glad to hear it!

              – rubenvb
              Jul 12 '11 at 15:15
















            14














            GCC for Windows is provided by two projects currently. They both provide a very own implementation of the Windows SDK (headers and libraries) which is necessary because GCC does not work with Visual Studio files.





            1. The older mingw.org, which @Mat already pointed you to. They provide only a 32-bit compiler, and the latest version is GCC 4.5 as of the time of this writing. See here for the downloads you need:




              • Binutils is the linker and resource compiler etc.

              • GCC is the compiler, and is split in core and language packages

              • GDB is the debugger.

              • runtime library is required only for mingw.org

              • You might need to download mingw32-make seperately.

              • For support, you can try (don't expect friendly replies) mingw-users@lists.sourceforge.net



            2. The newer mingw-w64, which as the name predicts, also provides a 64-bit variant. It is superior in every way to #1 above. You can install with an installer, or find the toolchain files for 32-bit and 64-bit yourself. Alternatively, you can use MSYS2 which provides a huge amount of prebuilt binary packages installable through a package manager, pacman. Note that the MSYS2 toolchains work outside of the MSYS shell just fine; using it as a package manager only is possible. A third option is to use Qt's MinGW packages, which come bundled with a toolchain. For support, send an email to mingw-w64-public@lists.sourceforge.net or the forum via sourceforge.net.



            There are a lot of "non-official" toolchain builders, one of the most popular is TDM-GCC. They may use patches that break binary compatibility with official/unpatched toolchains, so be careful using them. It's best to use the official releases (or in the case of mingw-w64, the Personal builds are easier to get started with).



            Re the other answer: Cygwin/MSYS != GCC. Using GCC does not require the other. Plain users shouldn't be compiling GCC. That process is waaay to involved and time-consuming. Enough binary distributions floating around...






            share|improve this answer


























            • What's the difference between the "v1.0", "trunk" and "ddk" snapshot packages?

              – Nate C-K
              Jul 12 '11 at 13:32






            • 1





              v1.0 is the "release" branch, trunk is recommended by the developers (fastest fixes, some features/fixes aren't in the 1.0 branch). ddk is the MinGW-w64 Driver Development Kit.

              – rubenvb
              Jul 12 '11 at 13:42











            • Thanks! I just tried this distro (the 4.6 version under "Toolchains targeting Win32/64" that you recommended) and it worked great.

              – Nate C-K
              Jul 12 '11 at 15:12











            • @Nate C-K: glad to hear it!

              – rubenvb
              Jul 12 '11 at 15:15














            14












            14








            14







            GCC for Windows is provided by two projects currently. They both provide a very own implementation of the Windows SDK (headers and libraries) which is necessary because GCC does not work with Visual Studio files.





            1. The older mingw.org, which @Mat already pointed you to. They provide only a 32-bit compiler, and the latest version is GCC 4.5 as of the time of this writing. See here for the downloads you need:




              • Binutils is the linker and resource compiler etc.

              • GCC is the compiler, and is split in core and language packages

              • GDB is the debugger.

              • runtime library is required only for mingw.org

              • You might need to download mingw32-make seperately.

              • For support, you can try (don't expect friendly replies) mingw-users@lists.sourceforge.net



            2. The newer mingw-w64, which as the name predicts, also provides a 64-bit variant. It is superior in every way to #1 above. You can install with an installer, or find the toolchain files for 32-bit and 64-bit yourself. Alternatively, you can use MSYS2 which provides a huge amount of prebuilt binary packages installable through a package manager, pacman. Note that the MSYS2 toolchains work outside of the MSYS shell just fine; using it as a package manager only is possible. A third option is to use Qt's MinGW packages, which come bundled with a toolchain. For support, send an email to mingw-w64-public@lists.sourceforge.net or the forum via sourceforge.net.



            There are a lot of "non-official" toolchain builders, one of the most popular is TDM-GCC. They may use patches that break binary compatibility with official/unpatched toolchains, so be careful using them. It's best to use the official releases (or in the case of mingw-w64, the Personal builds are easier to get started with).



            Re the other answer: Cygwin/MSYS != GCC. Using GCC does not require the other. Plain users shouldn't be compiling GCC. That process is waaay to involved and time-consuming. Enough binary distributions floating around...






            share|improve this answer















            GCC for Windows is provided by two projects currently. They both provide a very own implementation of the Windows SDK (headers and libraries) which is necessary because GCC does not work with Visual Studio files.





            1. The older mingw.org, which @Mat already pointed you to. They provide only a 32-bit compiler, and the latest version is GCC 4.5 as of the time of this writing. See here for the downloads you need:




              • Binutils is the linker and resource compiler etc.

              • GCC is the compiler, and is split in core and language packages

              • GDB is the debugger.

              • runtime library is required only for mingw.org

              • You might need to download mingw32-make seperately.

              • For support, you can try (don't expect friendly replies) mingw-users@lists.sourceforge.net



            2. The newer mingw-w64, which as the name predicts, also provides a 64-bit variant. It is superior in every way to #1 above. You can install with an installer, or find the toolchain files for 32-bit and 64-bit yourself. Alternatively, you can use MSYS2 which provides a huge amount of prebuilt binary packages installable through a package manager, pacman. Note that the MSYS2 toolchains work outside of the MSYS shell just fine; using it as a package manager only is possible. A third option is to use Qt's MinGW packages, which come bundled with a toolchain. For support, send an email to mingw-w64-public@lists.sourceforge.net or the forum via sourceforge.net.



            There are a lot of "non-official" toolchain builders, one of the most popular is TDM-GCC. They may use patches that break binary compatibility with official/unpatched toolchains, so be careful using them. It's best to use the official releases (or in the case of mingw-w64, the Personal builds are easier to get started with).



            Re the other answer: Cygwin/MSYS != GCC. Using GCC does not require the other. Plain users shouldn't be compiling GCC. That process is waaay to involved and time-consuming. Enough binary distributions floating around...







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Jul 12 '14 at 13:25

























            answered Jun 18 '11 at 9:21









            rubenvbrubenvb

            327415




            327415













            • What's the difference between the "v1.0", "trunk" and "ddk" snapshot packages?

              – Nate C-K
              Jul 12 '11 at 13:32






            • 1





              v1.0 is the "release" branch, trunk is recommended by the developers (fastest fixes, some features/fixes aren't in the 1.0 branch). ddk is the MinGW-w64 Driver Development Kit.

              – rubenvb
              Jul 12 '11 at 13:42











            • Thanks! I just tried this distro (the 4.6 version under "Toolchains targeting Win32/64" that you recommended) and it worked great.

              – Nate C-K
              Jul 12 '11 at 15:12











            • @Nate C-K: glad to hear it!

              – rubenvb
              Jul 12 '11 at 15:15



















            • What's the difference between the "v1.0", "trunk" and "ddk" snapshot packages?

              – Nate C-K
              Jul 12 '11 at 13:32






            • 1





              v1.0 is the "release" branch, trunk is recommended by the developers (fastest fixes, some features/fixes aren't in the 1.0 branch). ddk is the MinGW-w64 Driver Development Kit.

              – rubenvb
              Jul 12 '11 at 13:42











            • Thanks! I just tried this distro (the 4.6 version under "Toolchains targeting Win32/64" that you recommended) and it worked great.

              – Nate C-K
              Jul 12 '11 at 15:12











            • @Nate C-K: glad to hear it!

              – rubenvb
              Jul 12 '11 at 15:15

















            What's the difference between the "v1.0", "trunk" and "ddk" snapshot packages?

            – Nate C-K
            Jul 12 '11 at 13:32





            What's the difference between the "v1.0", "trunk" and "ddk" snapshot packages?

            – Nate C-K
            Jul 12 '11 at 13:32




            1




            1





            v1.0 is the "release" branch, trunk is recommended by the developers (fastest fixes, some features/fixes aren't in the 1.0 branch). ddk is the MinGW-w64 Driver Development Kit.

            – rubenvb
            Jul 12 '11 at 13:42





            v1.0 is the "release" branch, trunk is recommended by the developers (fastest fixes, some features/fixes aren't in the 1.0 branch). ddk is the MinGW-w64 Driver Development Kit.

            – rubenvb
            Jul 12 '11 at 13:42













            Thanks! I just tried this distro (the 4.6 version under "Toolchains targeting Win32/64" that you recommended) and it worked great.

            – Nate C-K
            Jul 12 '11 at 15:12





            Thanks! I just tried this distro (the 4.6 version under "Toolchains targeting Win32/64" that you recommended) and it worked great.

            – Nate C-K
            Jul 12 '11 at 15:12













            @Nate C-K: glad to hear it!

            – rubenvb
            Jul 12 '11 at 15:15





            @Nate C-K: glad to hear it!

            – rubenvb
            Jul 12 '11 at 15:15











            1














            GCC is available through Chocolatey:



            choco install mingw -y


            Restart the command prompt and you should be able to run gcc.






            share|improve this answer






























              1














              GCC is available through Chocolatey:



              choco install mingw -y


              Restart the command prompt and you should be able to run gcc.






              share|improve this answer




























                1












                1








                1







                GCC is available through Chocolatey:



                choco install mingw -y


                Restart the command prompt and you should be able to run gcc.






                share|improve this answer















                GCC is available through Chocolatey:



                choco install mingw -y


                Restart the command prompt and you should be able to run gcc.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Aug 9 '15 at 15:34









                bwDraco

                36.8k37137177




                36.8k37137177










                answered Aug 9 '15 at 14:34









                030030

                94571534




                94571534






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f195317%2fhow-to-install-gcc-on-windows-7%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Probability when a professor distributes a quiz and homework assignment to a class of n students.

                    Aardman Animations

                    Are they similar matrix