Search code examples
c++macosboost-filesystem

Installing Boost libraries on Snow Leopard


I have followed the directions on the boost website. I have put the boost dir in the path. I still cannot compile a C++ program using the boost libraries. I am specifically trying to use the filesystem library. Any help is greatly appreciated.

--TJB


Solution

  • Did you compile the filesystem library? Many Boost libraries are header-only, but filesystem is one of the few that have to be compiled (and linked).

    Instructions on how to do that can be found at points 5 and 6 of the Getting Started on Unix Variants page. Instructions specific to the filesystem lib are at http://www.boost.org/doc/libs/1_40_0/libs/filesystem/doc/index.htm#Building