Skip to content

Instantly share code, notes, and snippets.

@camilojm27
Last active February 13, 2019 17:25
Show Gist options
  • Save camilojm27/a9d08ca6a3290af8e297ff5fe86636b6 to your computer and use it in GitHub Desktop.
Save camilojm27/a9d08ca6a3290af8e297ff5fe86636b6 to your computer and use it in GitHub Desktop.
Compilacion C++ para windows con MinGW64
{
"configurations": [
{
"name": "Win32",
"intelliSenseMode": "clang-x64",
"defines": [
"_DEBUG",
"UNICODE",
"__GNUC__=7",
"__stdcall=attribute((stdcall))",
"__cdecl=__attribute__((__cdecl__))",
"__cplusplus=201703L"
],
"includePath": [
"${workspaceFolder}/include",
"C:/MinGW64/bin/**",
"C:/MinGW64/lib/gcc/x86_64-w64-mingw32/**"
],
"browse": {
"path": [
"${workspaceFolder}/include",
"C:/MinGW64/bin/**",
"C:/MinGW64/lib/gcc/x86_64-w64-mingw32/**"
],
"limitSymbolsToIncludedHeaders": false,
"databaseFilename": ""
},
"cStandard": "c11",
"cppStandard": "c++17",
"compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/Hostx64/x64/cl.exe"
},
{
"name": "Linux",
"includePath": [
"${workspaceFolder}",
"/usr/include/c++/**",
"/usr/local/include",
"/usr/include",
"${workspaceFolder}/src"
],
"defines": [],
"intelliSenseMode": "clang-x64",
"browse": {
"path": [
"${workspaceFolder}",
"/usr/include/c++/**",
"/usr/local/include",
"/usr/include",
"${workspaceFolder}/src"
],
"limitSymbolsToIncludedHeaders": true,
"databaseFilename": ""
},
"compilerPath": "/usr/bin/gcc",
"cStandard": "c11",
"cppStandard": "c++17"
}
],
"version": 4
}
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Linux C/C++",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/${fileBasenameNoExtension}.o",
"cwd": "${workspaceFolder}",
"externalConsole": true,
"stopAtEntry": false,
"preLaunchTask": "C++ test",
"miDebuggerPath": "/usr/bin/gdb"
},
{
"name": "Windows C/C++",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "C:/MinGW64/bin/gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": false
}
],
"preLaunchTask": "build & run file"
}
]
}
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "C++ test",
"type": "shell",
"command":"g++",
"args": [
"-g",
"${file}",
"-o",
"${fileBasenameNoExtension}.o"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build & debug file",
"type": "shell",
"command": "g++",
"args": [
"-g",
"-o",
"${fileBasenameNoExtension}",
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build & run file",
"type": "shell",
"command": "g++",
"args": [
"-o",
"${fileBasenameNoExtension}",
"${file}"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment