关于C程序上有关C程序的配置
我使用插件Code Runner 来开发C 程序。
文件tasks.json如下:
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe build active file",
"command": "E:\\developer_tools\\C\\mingw64\\bin\\gcc.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "compiler: E:\\developer_tools\\C\\mingw64\\bin\\gcc.exe"
}
]
}
我想知道如何自定义输出执行文件的路径。
I use the plugin Code Runner to develop C programs.
And the file tasks.json as follows:
{
"version": "2.0.0",
"tasks": [
{
"type": "cppbuild",
"label": "C/C++: gcc.exe build active file",
"command": "E:\\developer_tools\\C\\mingw64\\bin\\gcc.exe",
"args": [
"-fdiagnostics-color=always",
"-g",
"${file}",
"-o",
"${fileDirname}\\${fileBasenameNoExtension}.exe"
],
"options": {
"cwd": "${fileDirname}"
},
"problemMatcher": [
"$gcc"
],
"group": "build",
"detail": "compiler: E:\\developer_tools\\C\\mingw64\\bin\\gcc.exe"
}
]
}
I want to know how to customize the path that outputs the executive file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
好吧,
GCC
命令行就在那里。是控制输出的位置的零件。您可以将其自定义为自己的喜好。
Well, the
gcc
command line is right there.are the parts that control where the output is written. You can customize that to your heart's liking.