{"id":3889,"date":"2020-12-26T07:36:29","date_gmt":"2020-12-25T22:36:29","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=3889"},"modified":"2022-04-12T09:29:10","modified_gmt":"2022-04-12T00:29:10","slug":"vscode-c-c-%e3%82%b3%e3%83%b3%e3%83%91%e3%82%a4%e3%83%a9%e3%83%bb%e3%83%97%e3%83%ad%e3%83%bc%e3%83%96","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/3889","title":{"rendered":"[vscode] C\/C++ \u30b3\u30f3\u30d1\u30a4\u30e9\u30fb\u30d7\u30ed\u30fc\u30d6"},"content":{"rendered":"<h3>\u75c7\u72b6<\/h3>\n<p>Visual Studio Code \u8d77\u52d5\uff08\u62e1\u5f35\u6a5f\u80fd\u30a2\u30af\u30c6\u30a3\u30d6\u5316\uff09\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3001C\/C++ Extension \u304c\u30b3\u30f3\u30d1\u30a4\u30e9(cl.exe)\u3092\u547c\u3073\u51fa\u3057\u3001\u610f\u56f3\u3057\u306a\u3044\u8a2d\u5b9a\u306b\u5909\u66f4\u3057\u3066\u3057\u307e\u3046\u3002<\/p>\n<p><!--more--><\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >[2021\/7\/11 9:03:25] C \u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5f15\u6570\u3068 compilerPath \u306e\u30af\u30a8\u30ea\u306b\u57fa\u3065\u3044\u3066\u3001cStandard \u304c \"c99\" \u304b\u3089 \"c17\" \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f: \"C:\/Program Files (x86)\/Microsoft Visual Studio\/2017\/Professional\/VC\/Tools\/MSVC\/14.16.27023\/bin\/Hostx64\/x64\/cl.exe\"\r\n[2021\/7\/11 9:03:25] C++ \u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5f15\u6570\u3068 compilerPath \u306e\u30af\u30a8\u30ea\u306b\u57fa\u3065\u3044\u3066\u3001cppStandard \u304c \"c++03\" \u304b\u3089 \"c++14\" \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f: \"C:\/Program Files (x86)\/Microsoft Visual Studio\/2017\/Professional\/VC\/Tools\/MSVC\/14.16.27023\/bin\/Hostx64\/x64\/cl.exe\"<\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"lang:default highlight:0 decode:true \" >[2020\/12\/21 16:00:17] C \u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5f15\u6570\u3068 compilerPath \u306e\"cl.exe\" \u306e\u30d7\u30ed\u30fc\u30d6\u306b\u57fa\u3065\u3044\u3066\u3001cStandard \u304c \"c99\" \u304b\u3089 \"c17\" \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\r\n[2020\/12\/21 16:00:17] C++ \u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5f15\u6570\u3068\u30d7\u30ed\u30fc\u30d6 compilerPath \u306b\u57fa\u3065\u3044\u3066\u3001cppStandard \u304c \"c++03\" \u304b\u3089 \"c++14\" \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f: \"cl.exe\"<\/pre>\n<p><a href=\"https:\/\/chihayafuru.s3-ap-northeast-1.amazonaws.com\/imgs\/2020\/12\/vscode_compiler_probe.png\"><br \/>\n<img decoding=\"async\" src=\"https:\/\/chihayafuru.s3-ap-northeast-1.amazonaws.com\/imgs\/2020\/12\/vscode_compiler_probe.png\" alt=\"\u30d7\u30ed\u30fc\u30d6\u306b\u57fa\u3065\u3044\u3066\"><br \/>\n<\/a><\/p>\n<h4>C\/C++ Extension Pack for Visual Studio Code 1.4.1 \/ Visual Studio Code 1.57.0<\/h4>\n<ul>\n<li>C \u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5f15\u6570\u3068 compilerPath \u306e\u30af\u30a8\u30ea\u306b\u57fa\u3065\u3044\u3066\u3001cStandard \u304c &#8220;c99&#8221; \u304b\u3089 &#8220;c17&#8221; \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f: &#8220;C:\/Program Files (x86)\/Microsoft Visual Studio\/2017\/Community\/VC\/Tools\/MSVC\/14.16.27023\/bin\/Hostx64\/x64\/cl.exe&#8221;<\/li>\n<li>C++ \u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u3067\u3001\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5f15\u6570\u3068 compilerPath \u306e\u30af\u30a8\u30ea\u306b\u57fa\u3065\u3044\u3066\u3001cppStandard \u304c &#8220;c++03&#8221; \u304b\u3089 &#8220;c++14&#8221; \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f: &#8220;C:\/Program Files (x86)\/Microsoft Visual Studio\/2017\/Community\/VC\/Tools\/MSVC\/14.16.27023\/bin\/Hostx64\/x64\/cl.exe&#8221;<\/li>\n<\/ul>\n<h4>C\/C++ Extension Pack for Visual Studio Code 1.1.3 \/ Visual Studio Code 1.52.1<\/h4>\n<ul>\n<li>C \u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u3067\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5f15\u6570\u3068 compilerPath &quot;cl.exe&quot; \u306e\u30d7\u30ed\u30fc\u30d6\u306b\u57fa\u3065\u3044\u3066\u3001cStandard \u304c &quot;c99&quot; \u304b\u3089 &quot;c17&quot; \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002<\/li>\n<li>C++ \u30bd\u30fc\u30b9 \u30d5\u30a1\u30a4\u30eb\u3067\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u5f15\u6570\u3068\u30d7\u30ed\u30fc\u30d6 &quot;cl.exe&quot; \u306b\u57fa\u3065\u3044\u3066\u3001cppStandard \u304c &quot;c++03&quot; \u304b\u3089 &quot;c++14&quot; \u306b\u5909\u66f4\u3055\u308c\u307e\u3057\u305f\u3002<\/li>\n<p><\/u><br \/>\n<!--more--><\/p>\n<h3>\u539f\u56e0<\/h3>\n<p>C\/C++ Extension \u304c\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30fb\u30b3\u30f3\u30d1\u30a4\u30e9(cl.exe)\u3092\u307f\u3064\u3051\u3066\u3001\u8a2d\u5b9a\u3092\u4e0a\u66f8\u304d\u3057\u3066\u3044\u308b\u3002<\/p>\n<h3>\u5bfe\u7b56<\/h3>\n<p>\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u30d1\u30b9\u6307\u5b9a &quot;compilerPath&quot; \u3092\u7121\u52b9\uff08\u7a7a\u6587\u5b57\u5217\uff09\u306b\u3059\u308b\u3002<\/p>\n<h4>.vscode\/c_cpp_properties.json<\/h4>\n<pre class=\"lang:js decode:true \" >{\r\n    \"env\": {\r\n        \"DefaultIncludePath\": [\r\n            \/\/ \u4e2d\u7565\r\n        ]\r\n    },\r\n    \"configurations\": [\r\n        {\r\n            \"name\": \"Win32\",\r\n            \/\/ \u4e2d\u7565\r\n            \"compilerPath\": \"\",\r\n            \"cStandard\": \"c99\",\r\n            \"cppStandard\": \"c++03\"\r\n        }\r\n    ],\r\n    \/\/ \u4e2d\u7565\r\n}<\/pre>\n<h3>\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"https:\/\/code.visualstudio.com\/docs\/cpp\/c-cpp-properties-schema-reference#_configuration-properties\">c_cpp_properties.json reference<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u75c7\u72b6 Visual Studio Code \u8d77\u52d5\uff08\u62e1\u5f35\u6a5f\u80fd\u30a2\u30af\u30c6\u30a3\u30d6\u5316\uff09\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067\u3001C\/C++ Extension \u304c\u30b3\u30f3\u30d1\u30a4\u30e9(cl.exe)\u3092\u547c\u3073\u51fa\u3057\u3001\u610f\u56f3\u3057\u306a\u3044\u8a2d\u5b9a\u306b\u5909\u66f4\u3057\u3066\u3057\u307e\u3046\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[39],"class_list":["post-3889","post","type-post","status-publish","format-standard","hentry","category-memo","tag-vscode"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3889","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=3889"}],"version-history":[{"count":17,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3889\/revisions"}],"predecessor-version":[{"id":5141,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/3889\/revisions\/5141"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=3889"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=3889"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=3889"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}