当前位置:   article > 正文

Mac vscode 配置c++环境_mac vscode opencv4.2

mac vscode opencv4.2

vscode配置c++

按照官网教程一步一步来

首先是tasks.json

{
    // See https://go.microsoft.com/fwlink/?LinkId=733558 
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "type": "shell",
            "label": "clang++ build active file",
            "command": "/usr/bin/clang++",
            "args": [
                "-std=c++17",
                "-stdlib=libc++",
                "${workspaceFolder}/*.cpp",
                "-o",
                "${workspaceFolder}/helloworld.out",
                "-g"
            ],
            "options": {
                "cwd": "/usr/bin"
            },
 
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/2023面试高手/article/detail/676597
推荐阅读
相关标签
  

闽ICP备14008679号