- E.g. I wanted to add ext/pb_ds i.e. policy based data structures, for this I ran the command
echo | g++ -v -x c++ -E -
- Then downloaded the files from https://github.com/gcc-mirror/gcc/tree/master/libstdc%2B%2B-v3/include/ext
- Got the below output, in all these directories I checked if include exists then added ext directory, else created include and put ext inside it.
/usr/local/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/v1
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include
/Library/Developer/CommandLineTools/usr/include
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks (framework directory)
- Reference youtube video: https://youtu.be/3wMR7RCDgYw?si=UFFktohgBPC2nVCM
cstdalign is removed from above header file.