不能#include< dirent.h>在Visual Studio 2005中 [英] Cannot #include<dirent.h> in Visual Studio 2005

查看:1322
本文介绍了不能#include< dirent.h>在Visual Studio 2005中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Visual Studio 2005中加入 dirent.h #include< dirent.h> 得到错误:

When I include dirent.h (#include<dirent.h>) in Visual Studio 2005, I get the error:


致命错误C1083:无法打开包含文件:'dirent.h':没有此类文件或目录

fatal error C1083: Cannot open include file: 'dirent.h': No such file or directory

我是C ++的新手;任何人都可以向我提供此错误的解决方案。

I am new to C++; can anyone please provide me the solution for this error?

推荐答案

文件dirent.h不是C ++标准头文件。与在Windows上一样,您可能需要使用 FindFirstFile 和相关函数,在windows.h

The file dirent.h is not a C++ Standard header file. As you are on Windows, you probably want to use the FindFirstFile and related functions, declared in windows.h

这篇关于不能#include&lt; dirent.h&gt;在Visual Studio 2005中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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