找不到direct.h [英] Cannot find direct.h

查看:8560
本文介绍了找不到direct.h的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

由于某些原因,当我尝试编译我的代码,我得到这个错误:



致命错误:direct.h:没有这样的文件或目录
编译终止。



我使用g ++(GCC)的linux 4.6.0 20110509(Red Hat 4.6.0-7)

$ <$>

$ <$>

$ <$>

$ <$> b

它的大多数函数在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆