전체 글 (105) 썸네일형 리스트형 [Sandboxie] Create Sandboxed Shortcut Start Sandboxie Control> Configure> Windows Shell Integration> Add Shortcut Icons> Select Desired Program [Eclipse] Set C++ -static Option Set "-static" OptionProject > Properties > C/C++ Build > Settings > Tool Settings > MinGW C++ Linker > Miscellaneous > Linker flags > input "-static"Project > Properties > C/C++ Build > Settings > Tool Settings > Cygwin C++ Linker > Miscellaneous > Linker flags > input "-static" [Eclipse] Set C++ Toolchain Set ToolchainProject > Properties > C/C++ Build > Tool Chain Editor > Current toolchain > select "MinGW GCC"Project > Properties > C/C++ Build > Tool Chain Editor > Current toolchain > select "Cygwin GCC" [Windows] Set %HOME% Environment Variable (for Vim, Emacs, AStyle, ...) Vim, Emacs, AStyle 같은 프로그램에서 사용하는 option 파일인 _vimrc, .emacs, .astylerc 파일을 사용하기 위해서 %HOME% 환경변수를 지정해보자. 아래와 같이 지정해주면 편리하다. SET HOME=%USERPROFILE% http://hidecode.tistory.com/546http://hidecode.tistory.com/1220 Setup GCC on Windows using MSYS2 Windows 10 x64 환경에서 MSYS2과 GCC를 설치해보자. MSYS2 64-bit 버전인 msys2-x86_64-20161025.exe 파일을 실행하여 설치한다. 설치가 완료되면 아래와 같이 “MSYS2 MSYS” 터미널을 실행한다. Start Menu > MSYS2 64bit > MSYS2 MSYS “MSYS2 MSYS” 터미널에서 아래 명령을 실행하여 업데이트한다. pacman –Syu “MSYS2 MSYS” 터미널을 종료했다가 다시 실행한 후, 아래 명령을 실행하여 업데이트를 계속한다. pacman -Su “MSYS2 MSYS” 터미널을 종료했다가 다시 실행한 후, 아래 명령을 실행하여 compiler와 그밖에 필요한 package를 설치한다. pacman -S --needed base-.. Setup GCC on Windows using Cygwin Windows 10 x64 환경에서 Cygwin과 GCC를 설치해보자. Cygwin 64-bit 버전인 setup-x86_64.exe 파일을 실행하여 설치한다. 경험적을 봤을 때, 설치 도중 "Choose A Download Site"에서 ftp://ftp.kaist.ac.kr을 선택하면 빠르게 다운로드 받을 수 있다. (참고 : http://ftp.jaist.ac.jp도 속도가 괜찮게 나온다.) "Select Packages" 창이 나오면 Devel 섹션에서 아래 것들을 선택한다. (C/C++ compiler 사용을 위한 선택)gcc-coregcc-g++gdbmake참고 : CLion에서 cygwin을 사용하려면 cmake도 선택해서 설치하라고 하던데, 현재 배포 중인 CLion 2017.2.2 버전의.. Setup GCC on Windows using MinGW 설치환경 : Windows 10 x64 C/C++ compiler 사용을 위해 MinGW를 설치해보자. 먼저 http://mingw.org 사이트로 가서 Downloads를 클릭한다. Installer를 클릭한 후, mingw-get-setup.exe 파일을 다운로드 받는다. mingw-get-setup.exe 파일을 실행한 후, 설치를 진행한다. 설치하고자 하는 package를 선택하는 화면에서 아래의 package를 선택한다. (C/C++ compiler 사용을 위한 선택)mingw-developer-toolkitmingw32-basemingw32-gcc-g++msys-base 아래와 같이 클릭해서 선택한 package를 설치한다. Installation > Apply Changes Creating .. Add C++ Program Arguments [CLion] 사용환경 : Cygwin (gcc 6.4.0), CLion (2017.2.2), Windows 10 x64 CLion 환경에서 compile한 실행파일을 실행시켰을 때, arguments를 입력하는 방법을 알아보자. 아래와 같이 Program arguments를 입력하면 된다. Run > Edit Configurations > Program arguments CLion에서 Program arguments로 “Hello World”를 입력하고, 아래의 예제 프로그램을 실행시켜보자. #include #include using namespace std; int main(int argc, char *argv[]) { for (int var = 0; var < argc; ++var) { cout 이전 1 2 3 4 5 6 7 8 ··· 14 다음