본문 바로가기

Hacking Tools

[Hacking Tools] GCC 설치 방법

반응형

Introduction

GCC는 GNU Compiler Collection의 약자로 C, C++, Objective-C, Fortran, Ada, Go 등 여러 언어를 지원하는 오픈소스 컴파일러 모음이다. 하지만 일반적으로 말하는 gcc는 보통 C언어 컴파일러를 의미한다.


Preferences

1) 아래 링크로 접근하여 Download 부분을 찾아 다운로드를 진행해준다.

 

WinLibs - GCC+MinGW-w64 compiler for Windows

WinLibs standalone build of GCC and MinGW-w64 for Windows Jump to:   Download | How to use from Windows Command Prompt | How to use from Code::Blocks | Philosophy | Donate What is it? In short: it's a free C and C++ compiler for Microsoft Windows. GCC (GN

winlibs.com

 

 

2) 이후 적절한 위치에 zip 파일의 압축을 풀어준다. 환경 변수 설정을 해줘야하기 때문에 쉬운 경로에서 푸는 것을 추천한다.

예시:
C:\PC_Settings\Tools

 

 

3) '시스템 속성 > 고급 > 환경 변수'에서 환경 변수 설정을 해준다.

C:\PC_Settings\Tools\mingw64\bin

sysdm.cpl

4) 아래 명령어가 제대로 실행되면 잘 설치된 것

gcc -help

 

반응형