Skip to content

Instantly share code, notes, and snippets.

@devlights
Created November 13, 2017 12:04
Show Gist options
  • Select an option

  • Save devlights/c8836070e6c0ebace8469a84a898a924 to your computer and use it in GitHub Desktop.

Select an option

Save devlights/c8836070e6c0ebace8469a84a898a924 to your computer and use it in GitHub Desktop.
[VSCODE] Windows で MinGW 使ってビルドできるようにする設定(まだ実行までは出来ていないけど)
{
"configurations": [
{
"name": "Win32",
"includePath": [
"${workspaceRoot}",
"C:/MinGW/include",
"C:/MinGW/lib/gcc/mingw32/4.9.3/include"
],
"defines": [
"_DEBUG",
"UNICODE"
],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceRoot}",
"C:/MinGW/include",
"C:/MinGW/lib/gcc/mingw32/4.9.3/include"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
}
}
],
"version": 3
}
#include <stdio.h>
int main(void) {
printf("helloworld\n");
return 0;
}
{
// IntelliSense を使用して利用可能な属性を学べます。
// 既存の属性の説明をホバーして表示します。
// 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "(Windows) Launch",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"preLaunchTask": "build"
}
]
}
@devlights

Copy link
Copy Markdown
Author

とりあえず、上の設定で CTRL + SHIFT + B でビルドできた。

@devlights

Copy link
Copy Markdown
Author

vscode version は 1.18.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment