我试图在Sublime Text 2中使用g++同时编译多个C++文件
sublime-build file
。使用通配符在我的Windows桌面上很好,但在我的Macbook上不起作用,我如何让通配符在Mac上起作用?
崇高构建文件:
{
"cmd": ["g++", "-std=c++11", "-I", "/Users/Dan2/YorickTheSavant/include",
"/Users/Dan2/YorickTheSavant/src/*",
"-o", "/Users/Dan2/YorickTheSavant/Yorick the Savant",
"-F", "/Users/Dan2/Library/Frameworks",
"-framework", "sfml-system",
"-framework", "sfml-window",
"-framework", "sfml-graphics"],
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "/Users/Dan2/YorickTheSavant/",
"selector": "source.c, source.c++",
"variants":
[
{
"name": "Run",
"cmd": ["/Users/Dan2/YorickTheSavant/Yorick the Savant"]
}
]
}
输出:
clang: error: no such file or directory: '/Users/Dan2/YorickTheSavant/src/*'