Advertisement
Guest User

stupid boost & linking shiz :'(

a guest
Nov 24th, 2012
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <boost/filesystem.hpp>
  3.  
  4. using namespace boost::filesystem;
  5.  
  6. int main() {
  7.     std::cout << "Hello World!\n";
  8.     auto end_it = directory_iterator();
  9.     auto it = directory_iterator(current_path());
  10.     for(; it != end_it; it++) {
  11.         std::cout << it->path() << std::endl;
  12.     }
  13.     std::cin.get();
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement