Re: about gcc native on Microsoft Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



在 2019/9/25 20:43, Tamar Christina 写道:
> 
> Extracting them together in the same destination will install them in the right places. If you don't mind using msys2 then you can just do `pacman -Sy gcc` to get the latest one. If you get an older version than 9.2 then you need to update your msys2 install before that and then you'll get the latest.
> 
>  

Building GCC requires a POSIX-compliant shell. Both Cygwin and MSYS2 are
an option. I am not clear about WSL; I haven't heard of anybody who ever
had built GCC in it. Windows does not have such a shell, so you can't
build GCC on Windows without them.

`pacman -S gcc` would install the GCC that runs on the MSYS2 CRT which
should not be considered 'native'. The package name of native GCC for
x64 is `mingw-w64-x86_64-gcc` and the one for x86 is
`mingw-w64-i686-gcc`. Personally I recommend use MSYS2 as it has a nice
package management system which provides other native tools too (such as
GDB and Python).



-- 
Best regards,
LH_Mouse

Attachment: signature.asc
Description: OpenPGP digital signature


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux