Hi, I am having a problem to compile this coding. While installing cygwin, I include boost filesystem package. But this code does not work. Do I have to download from boost website? Im using 32 bit windows 10. I have referred many tutorial that I found in Google. But it still does not help me.
It has nothing to do with Boost. That's not how you write a for-loop.
Try instead: for (auto i = directory_iterator(p); i != directory_iterator(); i++)