Problem of dirent.h

Hi
When I use #include <dirent.h> in my C++ code this error happen :
" Cannot open include file: 'dirent.h': No such file or directory "
how can I solve this problem ?
Your compiler/IDE/etc. does not come with <dirent.h>. What compiler and operating system are you using?
I am using Visual Studio 2010 and Visual Studio 2008 and my operating system is Windows 7 .
dirent.h is a POSIX header so to have it you should be in a POSIX environment, on Windows you can have it with Cygwin
There may also be some port of this library for VS
Topic archived. No new replies allowed.