如何解决“错误”无法打开包含文件'roundrobin.h'"? [英] how to resolve error of " Unable to open include file 'roundrobin.h' "?

查看:67
本文介绍了如何解决“错误”无法打开包含文件'roundrobin.h'"?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!我的编译器有问题。我使用了Jlandsp和Borland的编译器。

当我编译编码时,错误是无法打开包含文件''roundrobin.h''。

怎么能我解决了这个问题?

谢谢。

Hello! I have a problem with my compiler. I used Jgrasp and compiler of Borland.
When I compiling the coding, the error is " Unable to open include file ''roundrobin.h'' " .
How can I resolve this problem?
Thank You.

推荐答案

你问题的简单答案就是显示正确的路径。



问题出现了如何用c ++维护路径;

a。常见的包含文件夹

b。绝对路径

c。当前的源路径。



包含双向文件

1. #include< file_name>

2 。#includefile_name//对于案例b和c



如果1编译器将搜索分配的包含目录中的文件

In case 2编译器首先查找你给出的路径(如果是绝对路径)。但如果不是绝对的那么它会在当前目录中查找,如果搜索失败,它将作为情况1的包含目录。



现在你必须弄清楚你的情况是什么
The simple answer of your question would be showing the proper path.

The question appear how paths are maintained in c++;
a. Common include folder
b. absolute path
c. current source path.

two way files are included
1. #include <file_name>
2. #include "file_name" // for case b and c

In case 1 compiler will search the file in assigned include directory
In case 2 compiler first look for the path you have given(if absolute path). But if not absolute then it would look in the current directory, if searching failed it would go for the include directory as case 1.

Now you will have to figure out what is your case


这篇关于如何解决“错误”无法打开包含文件'roundrobin.h'&quot;?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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