localhost:Skin jianghujoy$ g++ -shared Skin/Skin.cpp -o skin
ld: can't open output file for writing: skin, errno=21 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
本文记录了一次在Mac上使用g++进行编译时遇到的错误:无法为文件'skin'写入输出,错误码21。问题在于Mac编译链接过程中会生成一个同名目录,默认大小写不敏感,因此不能直接使用'skin'作为输出文件名。
localhost:Skin jianghujoy$ g++ -shared Skin/Skin.cpp -o skin
ld: can't open output file for writing: skin, errno=21 for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

被折叠的 条评论
为什么被折叠?