How to install gcc-4.4 on cygwin?

I installed the cygwin environment on Windows. There is gcc 4.3. How to install gcc 4.4 in this environment?

+4
source share
3 answers

An alternative is to create one of them, but on cygwin it will be very slow. If you are a Linux user, you can create your own compiler (which runs in cmd.exe on windows and creates its own win32 binaries) on Linux. This is much faster (an order of magnitude more in my experience).

Otherwise, mingw is a good solution, although, in my experience, the equation.com binary works better for gcc 4.4 (there is no official gcc 4.4 from MinGW yet)

+3
source

If you don't need a cygwin environment for special reasons, I would go for Mingw with gcc 4.4. You can find the builds at: http://www.tdragon.net/recentgcc/ .

+2
source

Reading the MinGW FAQ shows that it can send requests for using the MinGW binaries instead of those that come with Cygwin.

For those who would like to use the Cygwin development environment, but generate Cygwin-independent executables, a much simpler option for "-mno-cygwin" exists. Just install Cygwin and the MinGW distribution in separate directories (for example, "C: \ CYGWIN" and "C: \ MINGW") and make sure that the "/ bin" subdirectory under your MinGW installation is before the Cygwin "/ bin" subdirectory in the environment variable PATH (i.e., "PATH =% PATH%; C: \ MINGW \ BIN; C: \ CYGWIN \ BIN"). This will allow you to access all the UNIX tools you need, ensuring that the GCC instance is used in the MinGW version. %%%

Remember that in the / etc / profile file, Cygwin by default places "/ usr / local / bin", "/ usr / bin" and "/ bin" in front of your PATH at the system level. Therefore, it is not enough to have MinGW "/ bin" in front of Cygwin in your path to Windows ... it must also be installed first in the Cygwin environment (either by changing "/ etc / profile" or manually installing it).

0
source

Source: https://habr.com/ru/post/1286407/


All Articles