zoukankan      html  css  js  c++  java
  • VSCode 编译 C 语言 GUI 程序时 去掉 命令窗口

    VSCode 编译 C 语言 GUI 程序时 去掉 命令窗口

    连接时,增加 -mwindows 参数

    安装 C/C++ 插件,在第一次运行时自动生成 launch.json 和 task.json 

    在 task.json 文件中 增加 -mwindows 参数,如下:

    {
        "tasks": [
            {
                "type": "cppbuild",
                "label": "C/C++: gcc.exe 生成活动文件",
                "command": "C:\mingw64\bin\gcc.exe",
                "args": [
                    "-g",
                    "${file}",
                    "-o",
                    "${fileDirname}\${fileBasenameNoExtension}.exe",
                    "-mwindows"
                ],
                "options": {
                    "cwd": "${workspaceFolder}"
                },
                "problemMatcher": [
                    "$gcc"
                ],
                "group": {
                    "kind": "build",
                    "isDefault": true
                },
                "detail": "调试器生成的任务。"
            }
        ],
        "version": "2.0.0"
    }
  • 相关阅读:
    K-Multiple Free set UVA-11246 (容斥原理)
    RAID! UVA-509 (奇偶校验)
    龙芯 fedora28 安装指南
    Kdenlive简明教程-简单的操作
    Kdenlive简明教程-开始
    Irrelevant Elements UVA-1635 (二项式定理)
    指针的指针笔记
    scanf 函数笔记
    printf 函数笔记
    龙芯 3A4000 Fedora28 安装笔记
  • 原文地址:https://www.cnblogs.com/czcbzc/p/14675905.html
Copyright © 2011-2022 走看看