Problem of dirent.h

Apr 3, 2011 at 10:43am
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 ?
Apr 3, 2011 at 11:13am
Your compiler/IDE/etc. does not come with <dirent.h>. What compiler and operating system are you using?
Apr 3, 2011 at 2:21pm
I am using Visual Studio 2010 and Visual Studio 2008 and my operating system is Windows 7 .
Apr 3, 2011 at 9:31pm
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.