名称具有空格的文件未编译
the files with their name having space are not getting compiled
使用 vscode 编译我的 C++ 程序。 名称具有空格的文件未编译
"version": "2.0.0",
"tasks": [
{
"type": "shell",
"label": "shell: g++.exe build active file",
"command":"C:\Program Files (x86)\CodeBlocks\MinGW\bin\g++.exe",
"args": ["-g", "${file}", "-o", "${fileDirname}\${fileBasenameNoExtension}.exe", "-std=c++11"],
"options": {
"cwd":"C:\Program Files (x86)\CodeBlocks\MinGW\bin"
},
"problemMatcher": [
"$gcc"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}```
就是这样。Chekcout VSCode 用于编译和运行和 c++ 文件的命令:
cd "c:UsersDeep RavalDesktop" ; if ($?) { g++ -std=c++14 garbage 2.cpp -o garbage 2 } ; if ($?) { .garbage 2 }
更具体地说,间隔文件会造成天气混乱,它是命令或实际文件名。
要解决此问题,您可以使用_
而不是space
。
或者,您可以根据操作系统设计自定义命令。
相关文章:
- 使用 Makefile 中的头文件编译 Pybind (不使用 cmake)
- 如何使用命令提示符、记事本和 MinGW 使用主文件、头文件和实现文件编译C++程序?
- 无论如何可以将webm / mp4文件编译/记忆为.exe程序吗?(C++)
- 从生成文件编译错误:"Unable to open output file" ..."No such file or directory"
- 如何使用 GLFW 预编译的二进制文件编译 Visual Studio 2019 发布版本
- Arduino IDE中自定义库类的.h文件编译错误的原因是什么
- makefile和错误将与大型项目分开的文件编译
- 如何使用生成文件编译具有多个目录的 c++ 项目
- 我可以将Visual Studio 2015头文件编译成dll并在VS2013中使用它吗?
- 使用Bazel将C 文件编译为python.h
- 使用 .a 文件编译简单的C++文件
- OpenCV 3.2 文件编译
- 如何从多个 cpp 文件编译 WebAssembly
- 从多个文件编译可以"undefined reference"
- 使用静态依赖性为共享二进制文件编译语法需要更加清晰
- 将Gsoap Src文件编译到我的项目中
- 如何用多个文件编译make下的dlib
- 字段的类型不完整,从多个文件编译
- 强制将特定文件编译为Objective-C/文件类型,但将整个项目编译为Objective C++
- OpenGLES 标头(包括 Availability.h)可防止 CPP 文件编译