找不到direct.h [英] Cannot find direct.h
问题描述
由于某些原因,当我尝试编译我的代码,我得到这个错误:
致命错误:direct.h:没有这样的文件或目录
编译终止。
我使用g ++(GCC)的linux 4.6.0 20110509(Red Hat 4.6.0-7)
它的大多数函数在linux上有类似的名字,是posix标准化的。阅读例如 getcwd , rmdir , mkdir ,或澄清您需要哪些函数的问题。
首先,删除包含并查看其他错误你会得到,并从那里工作。
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)
direct.h
is 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.
这篇关于找不到direct.h的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!