./../
  I D :    암호 :    ID저장      회원가입    네게(쥔장) 쪽지보내기    메모장    각종계산기    컬러빠렛    이모티콘(프레임, 새창)    보유장비
목록으로 가기..
Visual Studio Code에서 C/C++ 컴파일하기 김종호 | 삭제하기

1. Visual Studio Code Install (MS, Apple, Linux)

2. Ctrl + Shift + p -> Extension : extension installer 선택 혹은 좌측 메뉴 확장 텝 클릭

3. C/C++ IntelliSense, debugging, and code browsing Install

4. C/C++ Extension Pack Install

5. C/C++ Snippets Install

6. Language Pack Install

7. MisGW Install

8. Add to System Path
   C:\Program Files\mingw-w64\x86_64-8.1.0-win32-seh-rt_v6-rev0\mingw64\bin

8. Create C/C++ Source File

9. vscode folder in the create Tasks.json
copy
{
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "C/C++: gcc.exe build active file",
"command": "gcc",
"args": [
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}

10. vscode folder in the create launch.json
copy
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb) 시작",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": false,
"MIMode": "gdb",
"miDebuggerPath": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\bin\\gdb.exe",
"setupCommands": [
{
"description": "gdb에 자동 서식 지정 사용",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
"preLaunchTask": "C/C++: gcc.exe build active file"
}
]
}


11. vscode folder in the create c_cpp_properties.json
{
"configurations": [
{
"name": "Win32",
"intelliSenseMode": "clang-x64",
"compilerPath": "C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\bin\\g++.exe",
"includePath": [
"${workspaceRoot}"
],
"defines": [
"_DEBUG"
],
"browse": {
"path": [
"C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\8.1.0\\include",
"C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\8.1.0\\include-fixed",
"C:\\Program Files\\mingw-w64\\x86_64-8.1.0-win32-seh-rt_v6-rev0\\mingw64\\include\\*",
"${workspaceRoot}"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"cStandard": "c11",
"cppStandard": "c++17"
}
],
"version": 4
}


첨언 달기
이름 : 암호 :
번호    제목...(첨언) 작성일 접속
xxx [공지]자유겔러리 등록 오류 수정 완료 2017-12-22 685484
xxx [공지]자료실 다운로드 오류 처리 2017-12-01 31392
xxx [공지]비난, 광고 게시물을 신고, 차단, 삭제됩니다. 2005-06-26 27073
222 [일반]  NVIDIA LocalSystem Container 7031 Error 2025-08-17(일) 963
221 [일반]  windows Update 후에 Bitlocker 복구키 넣으라고 할때 2025-06-03(화) 2409
220 [일반]  Ollama AI 모델 설치 경로 바꾸기 2025-01-31(금) 1486
219 [일반]  Hyper V VMConnect(고급 세션모드 창) 보이지 않을 2024-07-24(수) 2668
218 [일반]  hyper-v virtualization is not enabled in BIOS 메세지 나올때 ..[13] 2024-06-30(일) 1921
217 [일반]  DataBase Connection String 2024-06-02(일) 12502
216 [C#]  c# 다른 버튼 임의로 누르기 이벤트 발생 2024-05-28(화) 1320
215 [일반]  windows 11 팝업메뉴 '추가옵션표시' 없애기 2024-05-03(금) 1346
214 [C#]  컨트롤이 자신이 만들어진 스레드가 아닌 스레드에서 액세스되었습니다. 오류 처리 2024-04-19(금) 1625
213 [일반]  windows 10, 11 최고성능 활성화하기 2024-04-04(목) 1556
212 [일반]  안드로이드 스마트폰 셔터음 없애기 2024-03-26(화) 1428
211 [일반]  VLC Player로 Streamming 할때 60초 후 끊기면 2024-03-05(화) 1334
210 [일반]  windows 원격으로 프로세스 끄기 2024-03-03(일) 1496
209 [일반]  windows 원격으로 컴퓨터 끄기 2024-03-03(일) 2459
208 [일반]  git ignore 가 적용 안될때 2024-01-08(월) 1362
207 [CPP]  STMCubeIDE 에서 multiple definition of Error 발생시 2023-11-24(금) 1919
206 [CPP]  STMCubeIDE 버전에 따라 caddr_t 오류 발생할때 2023-11-24(금) 1403
204 [일반]  Sony SRG-XP1 SRG-XB25, Lumens VC-BC701P RTSP URL 2023-08-18(금) 1601
203 [일반]  internet explorer가 edge로 자동 실행되는 것 방 2023-07-19(수) 3287
202 [일반]  .net native AOT로 컴파일 하면 30%정도 더 빨라짐 2023-07-08(토) 1585
검색 :
Page : 이전 1  2  3  4  5  6  7  8  9  10  11  12  13  다음




Copyright 2003-2026 ⓒ 김종호. All rights reserved. kimjongho.co.kr kimjongho.kr kimjongho.net kimjongho.com