BGM용 세이라디오
열기▼       고정
전체
글목록

Code::Blocks GNU GCC Compiler C, C++ 기준 적용하는 법

이 컴파일러는 ANSI C(=C89, C90), ISO C++ 표준에 추가 기능을 제공한다. 대표적인 예로 .c(C언어) 파일을 컴파일할때 VLA(Variable Length Array)를 지원한다.

int n = 10;
int a[n];  /*ANSI C forbids VLA*/

소스코드의 호환성이 중요하거나 C, C++ 표준을 학습하는 등 엄격한 설정이 필요한 경우 모드를 설정할 필요가 있다.

설정 변경 :
1. 상단 메뉴에서 'Settings' -> 'Compiler' 클릭
2. GNU GCC Compiler 선택 -> 'Compiler settings' 탭 -> 'Compiler Flags' 탭
3. 'Treat as errors the warnings demanded by strict ISO C and ISO C++ [-pedantic-errors]' 선택, 'OK' 확인

Code::Blocks 설치하기(윈도우즈)

코드블락은 Visual Studio와 더불어 대표적인 무료 개발 도구 중 하나이다. 리눅스 설치자들은 영어를 어느정도 하는 것으로 보고 윈도우즈 설치를 다룬다.
.post-outer{ -webkit-transform:none; transform:none; display:inline; padding:0; margin:0; border-width:0; } .hentry>div{ display:none; }