Ruben Veiga
Ruben Veiga

Reputation: 343

Add STL lib to mac os x bin

I download the STL library to do some test with it, but the folder does not have a "configure, make, make install " files. How can i add it to bin? So i can use always

    #include <vector.h>

instead of

    #include "vector.h"

and add the STL folder in all my project. enter image description here

Upvotes: 3

Views: 6152

Answers (1)

rubenvb
rubenvb

Reputation: 76785

If you install a C++ compiler it will ship with a C++ Standard Library implementation with includes the STL (STLPort?) you're talking about.

XCode and also macports gcc include this. You should not be setting this up like you are now.

Also note that the Standard library headers do not have a .h suffix. So you need

#include <vector>

Upvotes: 2

Related Questions