Header files included in bits/stdc++.h

I recently came across bits/stdc++.h . However, it turns out that it isn’t there on OSX. Can someone please share the contents of the file with me, so that I can add this header file manually?

https://gcc.gnu.org/onlinedocs/gcc-4.7.0/libstdc++/api/a01457_source.html i think this may help you …

1 Like

bits/stdc++.h is master file of c++. it includes all standard library file of c++. it saves time and clear confusion of which file should be used for the particular algorithm where it has some disadvantages like it increases compile time. for further information click on the link
link text

Follow this link… It will help… :slight_smile:

https://stackoverflow.com/questions/28994148/how-can-i-include-bits-stdc-in-xcode

Mac OS X 10.9+ no longer uses GCC/libstdc++ but uses libc++ and Clang. After the XCode 6.0.1 update the headers are now located here:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1

To open this address follow these steps:

  1. Open Finder.
  2. Click Go on menu bar then click Go to folder or Press Command+Shift+G directly.
  3. Enter the path /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include/c++/v1

Now, get the stdc++.h file from here,then creat bits directory in the above long address, and copy the file stdc++.h to the bits directory.

Thanks a lot!