How to use `pkg-config gtkmm-3.0 --cflags --libs` in the Visual Studio Code(如何在 Visual Studio 代码中使用 `pkg-config gtkmm-3.0 --cflags --libs`)
问题描述
How can I configure the tasks.json file so that when I press Ctrl + Shift + B the copier will use pkg-config gtkmm-3.0 --cflags --libs
.
My file looks like this:
"version": "0.1.0",
"command": "g++ `pkg-config gtkmm-3.0 --cflags --libs`",
"isShellCommand": true,
"args": ["main.cpp"]
But it returns this message:
Failed to launch external program g++ pkg-config gtkmm-3.0 --cflags --libs
main.cpp. spawn g++ pkg-config gtkmm-3.0 --cflags --libs
ENOENT
If I put it as an argument, like this:
"version": "0.1.0",
"command": "g++",
"isShellCommand": true,
"args": ["main.cpp", "pkg-config gtkmm-3.0 --cflags --libs`"]
Returns this message:
g++: error: pkg-config gtkmm-3.0 --cflags --libs`:
File or directory not found
you can try this!
"version": "0.1.0"
"command": "g++",
"isShellCommand": true,
"args": [
"main.cpp",
"`pkg-config", "--libs", "--cflags", "gtkmm-3.0`",
]
you should control how the argument is quoted.
more information: Task in Visual Studio Code
这篇关于如何在 Visual Studio 代码中使用 `pkg-config gtkmm-3.0 --cflags --libs`的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在 Visual Studio 代码中使用 `pkg-config gtkmm-3.0 --cflags --libs`


- C++ 数据结构超详细讲解顺序表 2023-03-25
- 我应该为我的项目使用相对包含路径,还是将包含目录放在包含路径上? 2022-10-30
- 详解C语言中sizeof如何在自定义函数中正常工作 2023-04-09
- Qt计时器使用方法详解 2023-05-30
- C语言qsort()函数的使用方法详解 2023-04-26
- c++ const 成员函数,返回一个 const 指针.但是返回的指针是什么类型的 const? 2022-10-11
- ubuntu下C/C++获取剩余内存 2023-09-18
- C语言手把手带你掌握带头双向循环链表 2023-04-03
- Easyx实现扫雷游戏 2023-02-06
- C语言详解float类型在内存中的存储方式 2023-03-27