写了一个用于测试的C++文件,运行时一直报错
[Running]
cd "/Users/fenglunli/Desktop/" && g++ test.cpp -o test && "/Users/fenglunli/Desktop/"test
ld: can't open output file for writing: test, errno=21 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
以为VSCode出问题了,于是转战Eclipse,然而依旧报错。
于是把代码精简成了这样: