0

when i include bits/stdc++.h on visual studio i get "fatal error: 'bits/stdc++.h' file not found". (I created folder bits and file stdc++.h on "/Library/Developer/CommandLineTools/usr/include/c++/v1")

  • 2
    **Very** relevant, possibly duplicate: [Why should I **not** #include ?](https://stackoverflow.com/questions/31816095/why-should-i-not-include-bits-stdc-h). `bits/stdc++.h` is not a standard header. It's an internal GCC, which will not exist if you're not using GCC. – Brian61354270 Aug 16 '21 at 22:15
  • so what i should do? i want to solve competetive programming problems, so i must have stdc++.h file. – Verscup Aug 18 '21 at 14:31
  • Why is it that you "must have `stdc++.h`? Why not just include the headers that you want to use? – Brian61354270 Aug 18 '21 at 14:36
  • ok I solved this issue for others you need to create folder bits and file stc++.h here "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/usr/include/" – Verscup Aug 18 '21 at 22:28
  • 1
    That's very bad solution. Sure, placing a file named `bit/stdc++.h` somewhere on the include path will let you write `#include `, but it won't actually work like `bit/stdc++.h`. You'll still need to include the all standard headers that you use. – Brian61354270 Aug 18 '21 at 22:31
  • for me it works fine. – Verscup Aug 19 '21 at 21:30

0 Answers0