Could not find direct.h

For some reason, when I try to compile my code, I get this error:

fatal error: direct.h: no such file or directory compilation completed.

I am using linux using g ++ (GCC) 4.6.0 20110509 (Red Hat 4.6.0-7)

+3
source share
3 answers

direct.h is part of the Digital Mars compiler, not gcc.

Most of its functions have similar names in linux, which are positioned standardly. Read the man page, for example. getcwd , rmdir , mkdir , or clarify your question about what features you need.

In the beginning, just remove include and see what other errors you get and work from there.

+4

C/++, Microsoft Windows, Linux.

wikipedia

unistd.h direct.h mkdir, rmdir ..

+2

I took the source code of SWMM5 and changed the files following readme and some minor fixes. In linux you don't seem to need direct.h at all for the CLE version. I checked a few examples provided by the EPA https://www.epa.gov/sites/production/files/2014-05/epaswmm5_apps_manual.zip

You can get files from here .

Let me know if something is not working.

0
source

All Articles