Add STL lib to mac os x bin

I download the STL library to run some test with it, but there are no "configure, make, make install" files in the folder. How can I add it to my cart? Therefore, I can always use

    #include <vector.h>

instead

    #include "vector.h"

and add the STL folder to my entire project. enter image description here

+3
source share
1 answer

If you install the C ++ compiler, it will come with an implementation of the standard C ++ library, including the STL (STLPort?) You are talking about.

Xcode as well as macports gcc include this. You should not configure it as it is now.

Also note that the standard library headers do not have a suffix .h. Therefore you need

#include <vector>
+2
source