C ++构建在MacOS上失败

问题描述

我试图在Macbook上运行C ++程序,并且试图通过运行构建任务C/C++:clang++ build active file在VSCode中运行程序。但是,每次执行此操作都会收到此错误ld: can't open output file for writing: /Users/admin/first/first,errno=21 for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) The terminal process terminated with exit code: 1

解决方法

这似乎是一个简单的权限问题:

ld:无法打开输出文件进行写入

链接器无法写入指定的文件。

编辑:如molbdnilo正确指出的, File "/opt/anaconda3/lib/python3.7/site-packages/xlrd/__init__.py",line 1187 print "EXTERNSHEET(b7-):" ^ SyntaxError: invalid syntax $(()=> { $("input:radio").click(()=>{ alert($(this).val()) }) }) ,这意味着您正在尝试写入的文件作为目录存在。所以...只是这个文件夹? :)

,

您是否酿造了任何c ++工具?有时,这就是这些问题的根源。该程序尝试使用本机OS版本的东西时应使用Homebrew,反之亦然。

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...