Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
05-16 04:51
관리 메뉴

nomad-programmer

[Windows] MSYS2 를 이용한 MinGW 설치 본문

OS/Windows

[Windows] MSYS2 를 이용한 MinGW 설치

scii 2019. 12. 29. 22:08

MSYS2 홈페이지

http://www.msys2.org/

 

MSYS2 homepage

MSYS2 is a software distro and building platform for Windows At its core is an independent rewrite of MSYS, based on modern Cygwin (POSIX compatibility layer) and MinGW-w64 with the aim of better interoperability with native Windows software. It provides a

www.msys2.org

 

MinGW 32/64 비트 설치

msys2를 설치하면 Start Menu - MSYS2 64BIT - MSYS2 64/32 비트 프로그램을 볼 수 있다.

먼저 64비트를 실행한다.

// MSYS2 64비트 터미널을 열고, 업데이트 진행
pacman -Syu

// 위의 명령이 모두 끝나면, 터미널을 종료 후 아래의 명령을 실행하여 계속 진행
pacman -Su

 

업데이트를 모두 완료 후, 터미널을 종료 후 다시 연다.

// 기본적인 패키지 설치
pacman -S --needed base-devel

// 32비트 툴체인 설치 (32비트 터미널에서 실행)
pacman -S --needed mingw-w64-i686-toolchain
pacman -S --needed mingw-w64-i686-cmake

// 64비트 툴체인 설치 (64비트 터미널에서 실행)
pacman -S --needed mingw-w64-x86_64-toolchain
pacman -S --needed mingw-w64-x86_64-cmake

// 부가적인 설치
pacman -S --needed cmake vim

위의 명령으로 설치했다면 "gcc --version" 명령으로 확인한다.

 

 

참고 사이트

https://www.devdungeon.com/content/install-gcc-compiler-windows-msys2-cc

 

Install gcc compiler on Windows with MSYS2 for C/C++

There are a variety of toolchains you can install on Windows for compiling C and C++ applications. Microsoft provides Visual Studio Community for free, and is a great IDE and toolchain. If you are developing exclusively for Windows, that is the tool I woul

www.devdungeon.com

'OS > Windows' 카테고리의 다른 글

[OS/Windows] oh-my-posh  (0) 2023.11.06
[OS/Windows] SQLCipher (암호와 된 SQLite) 빌드  (4) 2020.04.13
[OS/Windows] 키 입력 시각화 App  (0) 2020.01.02
Comments