For some reason when I try to compile my code, I get this error:
fatal error: direct.h: No such file or directory
compilation terminated.
I’m on linux using g++ (GCC) 4.6.0 20110509 (Red Hat 4.6.0-7)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
direct.his part of the Digital Mars compiler, not gcc.Most of its functions have similar names on linux that’s posix standarized. Read the manpage for e.g. getcwd , rmdir, mkdir ,or clarify your question as to which functions you need.
As a start, just remove the include and see what other errors you are getting, and work from there.