2023.12.23 ๊ธฐ์ค
M2 MAC
๋๋ฒ๊น ๊ด๋ จ ํ์ผ๋ค ๊ธฐ๋ก
codelldb extension ์ฌ์ฉ ์ค
//c_cpp_properties.json
{
"configurations": [
{
"name": "Mac",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"macFrameworkPath": [
"/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "c17",
"cppStandard": "c++17",
"intelliSenseMode": "macos-clang-arm64"
}
],
"version": 4
}
// launch.json
{
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": [],
"cwd": "${fileDirname}"
}
]
}
// tasks.json
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: clang++ ํ์ฑ ํ์ผ ๋น๋",
"command": "/usr/bin/clang++",
"args": [
"-std=c++20",
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-gdwarf-2",
"${fileDirname}/**.cpp",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
},
"detail": "์ปดํ์ผ๋ฌ: /usr/bin/clang++"
},
{
"type": "cppbuild",
"label": "C/C++: g++ ํ์ฑ ํ์ผ ๋น๋",
"command": "/usr/bin/g++",
"args": [
"-fdiagnostics-color=always",
"-gdwarf-2",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "๋๋ฒ๊ฑฐ์์ ์์ฑ๋ ์์
์
๋๋ค."
},
{
"type": "cppbuild",
"label": "C/C++: clang++ ํ์ฑ ํ์ผ ๋น๋",
"command": "/usr/bin/clang++",
"args": [
"-fcolor-diagnostics",
"-fansi-escape-codes",
"-g",
"${file}",
"-o",
"${fileDirname}/${fileBasenameNoExtension}"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "์ปดํ์ผ๋ฌ: /usr/bin/clang++"
}
]
}
'C++ > ๊ธฐํ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[C++] ์ฐ์ฐ์ ์ค๋ฒ๋ก๋ฉ | Operator Overloading (1) | 2024.01.08 |
---|---|
[C++] cin.ignore() (0) | 2023.12.28 |
[C++] ์ถ๊ฐ์ ์ธ ๋ณ์ ์ ์ธ ์์ด ๊ฐ ๊ตํํ๊ธฐ (swap) (1) | 2023.12.19 |
[C++] ๋๋ค ์ซ์ random number (0) | 2023.12.16 |
[C++] <iomanip> setprecision(n) (0) | 2023.12.10 |