如何修复“无法在 Turbo C 中打开 stdio.h”问题错误?
每当我编译我的程序时,我都会收到上面的错误。
Whenever I compile my program, I get the error above.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
每当我编译我的程序时,我都会收到上面的错误。
Whenever I compile my program, I get the error above.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(11)
如果您遇到这样的问题,首先将您的
TC
文件夹放入 C:.. 驱动器。安装完成后打开turbo c蓝屏。
有一个
OPTIONS >目录
..您可以看到设置路径的选项..C:\TC\INCUDE
C:\TC\LIB
C:\TC\BIN
..否则,您可以设置另一个要存储输出的路径。最后您可以给出确定并完成流程。
现在可以正常工作了
If you have problems like that, first of all your
TC
folder put in to the C:..drive.after completing installation open turbo c blue screen.
there is a
OPTIONS > Directories
..in that you can see for option to set up path..C:\TC\INCUDE
C:\TC\LIB
C:\TC\BIN
..otherwise you can set another path where you want to store your output..Finally you can give OK and finished processes..
It will now work properly
这样做:打开turboc2文件夹,里面有tc.exe文件,在这个文件旁边,你会发现另一个名为“tcinst.exe”的文件,打开它。
您将看到安装菜单:
这里您必须将目录路径更改为您的 INCLUDE 文件夹所在的路径。以同样的方式更改库目录的路径并重新启动 tc.exe。
Do this: Open your turboc2 folder you have tc.exe file inside, beside this file you find another file as named as ' tcinst.exe ' open it.
You will see the installation menu:
Here you have to change the path of the directory to the path where your INCLUDE folder is located. Same way change the path to library directory also over restart your tc.exe.
检查 INCLUDE 文件夹和 LIB 文件夹下是否有类似 stdio.h 文件和其他头文件的内容。 LIB 包含一些文件。就我而言,我遇到了同样的问题,但这两个文件夹都是空白的..很高兴知道。
步骤:
此窗口将包含 INCLUDE 和 LIB 目录的值。弹出窗口中这两个框的默认值为:安装 TC 的驱动器号...即 C:\ 或 D:\ 或后面跟着 INCLUDE 和 LIB 文件夹路径的任何内容。所以,就我而言,
INCLUDE 框设置为:“C:\TC\INCLUDE”,LIB 目录值框设置为:“C:\TC\LIB”(不带引号)。
解决步骤:
按 ALT + C。
Check if you have anything like those stdio.h file and other header files under INCLUDE folder and LIB folder. LIB contains some files. In my case, I had the same issue but both of these folder were blank.. good to know.
Steps:
This window will have values for INCLUDE and LIB directories. The by default value for these two boxes in the popup window are: Drive leter where you installed TC... i.e. C:\ or D:\ or whatever followed by the path for INCLUDE and LIB folder. So, in my case,
INCLUDE box was set to: "C:\TC\INCLUDE" and LIB directory value box was set to: "C:\TC\LIB" (without quotes).
Steps to resolve:
Press ALT + C.
转到选项选项卡,然后选择目录选项,然后输入 Turbo C 文件夹所在的特定路径。
在所有四个消息框中输入路径,它将开始像我的情况一样工作。我有 TurboC3,所有文件都放在一个公共根文件夹中。
Go to OPTIONS tab then select directories option then enter the particular path where your turbo c folder exists.
Enter the path in all the four message boxes and it would start working like it did in my case. I have TurboC3 and all the files were together in one common root folder.
检查您的环境包括路径。该文件不在该环境变量指向的位置。
Check your environment include path. The file is not in the locations pointed by that environment variable.
好吧,我一直在倒班,花了大约 6 个小时试图解决这个问题。
所有上述信息以及 dos 提示符屏幕中的一行都得出了这个结论,当我退出编辑器时,转到 dos 提示符,我的 C: 驱动器已安装。
我进行了
dir
搜索,发现的是:我安装 C 驱动器的方式最初看起来像这样,我的 dir 没有列出 C 驱动器上的所有文件,仅列出 Turboc++ 文件夹中的文件。
由此我得出的结论是,我的目录应该如下所示:
c:\include
not
c:\turboc++\tc\include
或
< code>c:\tc\include
真正的问题是我安装驱动器的性质。
希望这对某人有帮助。
b.mac
Well, I've been working backshift just spent about 6 hours trying to figure this out.
All of the above information led to this conclusion along with a single line in dos prompt screen, when I exited the editor, go to the dos prompt my C: drive is mounted.
I did a
dir
search and what I found was: the way in which I had mounted the C drive initially looked like thisand my dir did not list all files on the C drive only files within the turboc++ folder.
From that I had drawn the conclusion that my directories should look like:
c:\include
not
c:\turboc++\tc\include
or
c:\tc\include
The real problem was the nature in which I had mounted the drive.
Hope this helps someone.
b.mac
由于您没有提及 Turbo C 的版本,因此下面的方法将涵盖 v2 和 v3。
Since you did not mention which version of Turbo C this method below will cover both v2 and v3.
在大多数系统上,您必须非常努力地不找到“
”,以至于第一反应是“is” ;
已安装”。因此,我想看看该文件是否存在于合理的位置。如果没有,那么您的 Turbo C 安装已损坏;重新安装。如果您能找到它,那么您将必须确定为什么编译器没有在正确的位置搜索它 - 您指定的编译器选项是什么以及编译器在哪里搜索其标头(以及为什么不是)搜索标题在哪里)。On most systems, you'd have to be trying fairly hard not to find '
<stdio.h>
', to the point where the first reaction is "is<stdio.h>
installed". So, I'd be looking to see if the file exists in a plausible location. If not, then your installation of Turbo C is broken; reinstall. If you can find it, then you will have to establish why the compiler is not searching for it in the right place - what are the compiler options you've specified and where is the compiler searching for its headers (and why isn't it searching where the header is).确保包含标准头文件的文件夹位于项目路径中。
我不知道 Turbo C 中的这个位置在哪里,但我认为有一种方法可以做到这一点。
Make sure the folder with the standard header files is in the projects path.
I don't know where this is in Turbo C, but I would think there's a way of doing this.
首先检查文件夹名称是否正确,因为当您从其他文件夹复制到一个文件夹时,它意外地使用了其他文件夹地址,例如它使用了
C
而不是F
所以来自OPTION>DIRECTORY
更改文件夹名称First check whether the folder name is right or wrong since while you copying to one folder from other accidently it takes other folder address eg it take
C
instead ofF
So fromOPTION>DIRECTORY
change the folder name只需从您的计算机重新安装 Turbo C++ 并在目录 C:\TC\ 文件夹中再次安装即可。
问题再次存在,然后将目录从 FILE>>CHANGE DIRECTORY 更改为 C:\TC\BIN\
Just Re install the turbo C++ from your Computer and install again in the Directory C:\TC\ Folder.
Again The Problem exists ,then change the directory from FILE>>CHANGE DIRECTORY to C:\TC\BIN\