perhaps you miss these lines:
namespace fs = boost::filesystem;
fs::directory_iterator end_itr;
and try
cout << "entry: " << dir_iter->path().filename() << "\n";
cout << "entry path: " << dir_iter->path() << "\n";
in the loop
Refs: - http://www.boost.org/doc/libs/1_49_0/libs/filesystem/v3/doc/reference.html#Class-directory_entry - http://www.boost.org/doc/libs/1_49_0/libs/filesystem/v3/doc/reference.html#class-path