I’m writting a Foundation framework program and wanted to use
If you’re referring to the STL header stack.h, it is obsolete. You can find it with the C++ compatibility headers in /usr/include/gcc/darwin/g++-v3/backward or, preferably, switch to #include