dirent.h missing

I have installed PGI Workstation 9.04 for Windows.

When I try to compile code from one of our linux projects it complains that it cannot find dirent.h. A search of this file on my computer shows that it doesn’t exist. I was assuming that the PGI compiler came with a “unix” compatible environment. What am I missing? Do I need to install cygwin also? If so, are there issues with compiling/linking to a cygwin install with the PGI installed libraries?

Thanks

Hi Michael,

The PGI compilers are native Windows compilers. While we provide a Cygwin environment, you will still need to port your application to Windows. For non-standard header files such as “dirent.h”, you will need to replace them with the Windows equivalent. In this case “io.h”.

Hope this helps,
Mat