Hi, I am a student and I wanted to include <bits/stdc++.h> file in my code so that it will help me avoid including many files in my program to save time during competitive programming, but while including above file in my program, it gives error "file not found", since clang++ do not have it present by default, so I want to add it manually. Please help me fix the issue.
I already added bits folder at this location : /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1
following which I also created stdc++.h file but still error persists!!.
I also made bits folder with stdc++.h file at this location too : /Library/Developer/CommandLineTools/usr/include/c++/v1
but again couldn't fix the error!!
I also made respective changes in Homebrew folder (to fix it in g++ too, but again couldn't fix it!!)
Post
Replies
Boosts
Views
Activity
Hi, I am a student and I keep switching between VS Code and Xcode, but now every time I compile a code in VS Code it gives an error --> "clang: error: linker command failed with exit code 1" but the same code can be build successfully in Xcode. How do I fix this error?