如何修复“无法在 Turbo C 中打开 stdio.h”问题错误?

发布于 2024-08-23 17:04:03 字数 29 浏览 7 评论 0原文

每当我编译我的程序时,我都会收到上面的错误。

Whenever I compile my program, I get the error above.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(11

☆獨立☆ 2024-08-30 17:04:03

如果您遇到这样的问题,首先将您的 TC 文件夹放入 C:.. 驱动器。
安装完成后打开turbo c蓝屏。
有一个 OPTIONS >目录 ..您可以看到设置路径的选项..

  1. 包括目录..您现在可以在那里设置路径..C:\TC\INCUDE
  2. 库目录..您可以在那里设置路径...C:\TC\LIB
  3. 如果你想将输出存储在 BIN 中,那么你可以设置..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..

  1. include directories..you can set path there now.. C:\TC\INCUDE
  2. libraries Directories..you can set path there...C:\TC\LIB
  3. if you want to store your output in BIN then you can set..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

孤凫 2024-08-30 17:04:03

这样做:打开turboc2文件夹,里面有tc.exe文件,在这个文件旁边,你会发现另一个名为“tcinst.exe”的文件,打开它。

您将看到安装菜单:

select as-- > Option > Directory > Include directory

这里您必须将目录路径更改为您的 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:

select as-- > Option > Directory > Include directory

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.

唱一曲作罢 2024-08-30 17:04:03

检查 INCLUDE 文件夹和 LIB 文件夹下是否有类似 stdio.h 文件和其他头文件的内容。 LIB 包含一些文件。就我而言,我遇到了同样的问题,但这两个文件夹都是空白的..很高兴知道。
步骤:

  1. 按:ALT + O + D(即按ATL(按住)然后按O英文字符)然后按D)。
  2. 您会看到一个弹出窗口。
  3. 此窗口将包含 INCLUDE 和 LIB 目录的值。弹出窗口中这两个框的默认值为:安装 TC 的驱动器号...即 C:\ 或 D:\ 或后面跟着 INCLUDE 和 LIB 文件夹路径的任何内容。所以,就我而言,

    INCLUDE 框设置为:“C:\TC\INCLUDE”,LIB 目录值框设置为:“C:\TC\LIB”(不带引号)。
    解决步骤:

  4. 按 ALT + C。

  5. 将当前目录设置为 C:\TC\BGI
  6. 按 ALT + O + D,然后输入 ../INCLUDE 和 ../LIB在 Include/Lib 目录值中。
  7. 现在...当你运行你的进度时,你会对我说谢谢。我喜欢现在在 DOS Turbo C 上运行的 archduchess 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:

  1. Press: ALT + O + D (i.e. press ATL (keep pressed) and then O english character) and then D).
  2. You'll see a popup window.
  3. 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:

  4. Press ALT + C.

  5. Set your current directory as C:\TC\BGI
  6. Press ALT + O + D, and put ../INCLUDE and ../LIB in Include/Lib directory values.
  7. and now... when you'll run your progress, you'll say thanks to me. I like the archduchess C fractal graphics that I'm running on DOS Turbo C right now. Lol.
绅士风度i 2024-08-30 17:04:03

转到选项选项卡,然后选择目录选项,然后输入 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.

逆光飞翔i 2024-08-30 17:04:03

检查您的环境包括路径。该文件不在该环境变量指向的位置。

Check your environment include path. The file is not in the locations pointed by that environment variable.

獨角戲 2024-08-30 17:04:03

好吧,我一直在倒班,花了大约 6 个小时试图解决这个问题。

所有上述信息以及 dos 提示符屏幕中的一行都得出了这个结论,当我退出编辑器时,转到 dos 提示符,我的 C: 驱动器已安装。

我进行了 dir 搜索,发现的是:我安装 C 驱动器的方式最初看起来像这样

mount 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 this

mount c: /

and 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

年少掌心 2024-08-30 17:04:03

由于您没有提及 Turbo C 的版本,因此下面的方法将涵盖 v2 和 v3。

  • 单击“选项”、“目录”,输入 Include 和 Lib 目录的正确位置。

Since you did not mention which version of Turbo C this method below will cover both v2 and v3.

  • Click on 'Options', 'Directories', enter the proper location for the Include and Lib directories.
反话 2024-08-30 17:04:03

在大多数系统上,您必须非常努力地不找到“”,以至于第一反应是“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).

指尖上得阳光 2024-08-30 17:04:03

确保包含标准头文件的文件夹位于项目路径中。

我不知道 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.

空城之時有危險 2024-08-30 17:04:03

首先检查文件夹名称是否正确,因为当您从其他文件夹复制到一个文件夹时,它意外地使用了其他文件夹地址,例如它使用了 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 of F So from OPTION>DIRECTORY change the folder name

凉月流沐 2024-08-30 17:04:03

只需从您的计算机重新安装 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\

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文