boost::filesystem and an odd linker error.

Hi.
I'm having difficulty using the boost::filesystem library. I have
checked-out the source from the CVS repository, and ran:
/usr/local/bin/bjam --v2 --toolset=darwin --with-regex --with-
serialization --with-filesystem --layout=system --prefix=SOMEDIR
variant=release threading=single link=shared install
Thinking that it would install headers in SOMEDIR/include and SOMEDIR/
lib. That it did. However, when I try to compile the simple_ls.cpp
example, I get the following errors:
$ g++ -o simple_ls simple_ls.cpp -Llibraries/lib -lboost_filesystem -
lboost_system
/usr/bin/ld: Undefined symbols:
boost::filesystem::initial_path()
boost::filesystem::is_directory(boost::filesystem::path const&)
boost::filesystem::system_complete(boost::filesystem::path const&)
boost::filesystem::path::path(char const*, bool (*)
(std::basic_string const&))
boost::filesystem::detail::dir_itr_init
(boost::shared_ptrboost::filesystem::detail::dir_itr_imp&,
boost::filesystem::path const&)
boost::filesystem::detail::dir_itr_increment
(boost::shared_ptrboost::filesystem::detail::dir_itr_imp&)
boost::filesystem::detail::dir_itr_dereference
(boost::shared_ptrboost::filesystem::detail::dir_itr_imp const&)
boost::filesystem::exists(boost::filesystem::path const&)
boost::filesystem::path::native_file_string() const
boost::filesystem::path::native_directory_string() const
boost::filesystem::path::leaf() const collect2: ld returned 1 exit status Which is a bit odd. The contents of the libraries/lib directory:
$ ls libraries/lib/libboost*
libraries/lib/libboost_filesystem.dylib libraries/lib/
libboost_serialization.dylib libraries/lib/
libboost_wserialization.dylib
libraries/lib/libboost_regex.dylib libraries/lib/
libboost_system.dylib
Why is this simple program not linking?
Matt
participants (1)
-
Matt Handley