相关文章推荐
打篮球的卤蛋  ·  Buona Caffe – Georgia ...·  1 周前    · 
玩手机的夕阳  ·  杰威爾音樂JVR Music·  3 周前    · 
爱搭讪的桔子  ·  李晓明:MOOC as ...·  2 月前    · 
买醉的墨镜  ·  北京朝阳凯文学校·  1 年前    · 

make command is failing with the below mentioned lines. Can someone please help me with this? Thanks!

ld: library not found for -lstdc++fs

clang: error: linker command failed with exit code 1 (use -v to see invocation)

Below are the list of gcc and clang versions.

Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
(base) rmagesh@Mageshs-MacBook-Pro src % gcc -v
Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
(base) rmagesh@Mageshs-MacBook-Pro src % clang++ -c
clang: error: no input files
(base) rmagesh@Mageshs-MacBook-Pro src % clang++ -v
Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
(base) rmagesh@Mageshs-MacBook-Pro src % clang -v  
Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: x86_64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
(base) rmagesh@Mageshs-MacBook-Pro src % `
            

My understanding is that stdc++fs is a GCC-ism, and you seem to be using Clang. If you remove the -lstdc++fs option, what happens?

Share and Enjoy
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Developer Forums Participation Agreement.
  • Forums
  • Terms of Use Privacy Policy License Agreements