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-09-08
 - [C语言]二叉搜索树 2023-09-07
 - C语言 详解字符串基础 2023-03-27
 - centos 7 vscode cmake 编译c++工程 2023-09-17
 - C语言实现宾馆管理系统课程设计 2023-03-13
 - C语言编程C++旋转字符操作串示例详解 2022-11-20
 - 全面了解C语言 static 关键字 2023-03-26
 - C++实现ETW进行进程变动监控详解 2023-05-15
 - C++实战之二进制数据处理与封装 2023-05-29
 - 带你深度走入C语言取整以及4种函数 2022-09-17
 
    	
    	
    	
    	
    	
    	
    	
    	
						
						
						
						
						
				
				
				
				