Whenever I compile my program, I get the error above.
每当我编译程序时,就会得到上面的错误。
11 个解决方案
#1
11
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..
如果你有这样的问题,首先你的TC文件夹放入到C:..驱动器。完成安装后,打开turbo c蓝屏幕。有一个选项>目录。在这个过程中,您可以看到设置路径的选项。
- include directories..you can set path there now..
C:\TC\INCUDE
- 包括目录. .你可以在那里设置路径。C:\ TC \ INCUDE
- libraries Directories..you can set path there...
C:\TC\LIB
- 图书馆目录. .你可以在那里设置路径…C:\TC\LIB。
- 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
最后,你可以给出好的和完成的过程。它现在可以正常工作了。
#2
5
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.
这样做:打开你的涡轮c2文件夹,你有tc。exe文件,在这个文件旁边,你会找到另一个名为“tcinst”的文件。exe”打开它。
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.
在这里,您必须将目录的路径更改为包含文件夹所在的路径。同样的方法,也可以改变路径到库目录,也可以重新启动您的tc.exe。
#3
3
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:
检查一下你是否有像这样的东西。h文件和其他头文件包括文件夹和LIB文件夹。*包含了一些文件。在我的例子中,我有同样的问题,但是这两个文件夹都是空白的。很高兴知道。步骤:
- Press: ALT + O + D (i.e. press ATL (keep pressed) and then O english character) and then D).
- 按:ALT + O + D(即按下(按下),然后是英文字符),然后是D)。
- You'll see a popup window.
- 你会看到一个弹出窗口。
-
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,
此窗口将具有包含和LIB目录的值。在弹出窗口中,这两个框的默认值是:Drive leter,在那里您安装了TC……即C:\或D:\或其他路径,包括和LIB文件夹。所以,在我的例子中,
INCLUDE box was set to: "C:\TC\INCLUDE" and LIB directory value box was set to: "C:\TC\LIB" (without quotes). Steps to resolve:
包括box被设置为:“C:\TC\INCLUDE”和LIB目录值框被设置为:“C:\TC\LIB”(没有引号)。解决步骤:
-
Press ALT + C.
按ALT + C。
- Set your current directory as C:\TC\BGI
- 将当前目录设置为C:\TC\BGI。
- Press ALT + O + D, and put ../INCLUDE and ../LIB in Include/Lib directory values.
- 按ALT + O + D,然后放…/包括和. ./LIB目录中包含/LIB目录值。
- 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.
- 而现在……当你要取得进步时,你会对我说声谢谢。我喜欢我现在在DOS Turbo C上运行的archduchess C分形图形。哈哈
#4
3
Go to OPTIONS tab then select directories option then enter the particular path where your turbo c folder exists.
转到OPTIONS选项卡,然后选择目录选项,然后输入您的turbo c文件夹所在的特定路径。
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.
在所有四个消息框中输入路径,它将像在我的例子中那样开始工作。我有TurboC3,所有的文件都放在一个共同的根文件夹里。
#5
2
Check your environment include path. The file is not in the locations pointed by that environment variable.
检查您的环境包括路径。该文件不在该环境变量所指向的位置。
#6
1
Since you did not mention which version of Turbo C this method below will cover both v2 and v3.
因为您没有提到哪个版本的Turbo C,下面的方法将涵盖v2和v3。
- Click on 'Options', 'Directories', enter the proper location for the Include and Lib directories.
- 点击“选项”,“目录”,输入包含和Lib目录的适当位置。
#7
0
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).
在大多数系统中,你必须尽力不去找“
#8
0
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.
我不知道这在Turbo C里是什么,但我认为有一种方法可以做到。
#9
0
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
首先检查文件夹名称是否正确,因为当你从其他文件夹中复制到一个文件夹时,它会选择另一个文件夹地址,例如C而不是F,所以从选项>目录更改文件夹名。
#10
0
Just Re install the turbo C++ from your Computer and install again in the Directory C:\TC\ Folder.
只需重新安装计算机上的turbo c++,并在目录C:\TC\文件夹中重新安装。
Again The Problem exists ,then change the directory from FILE>>CHANGE DIRECTORY to C:\TC\BIN\
再次出现问题,然后将目录从>>更改目录改为C:\TC\BIN\。
#11
0
Well, I've been working backshift just spent about 6 hours trying to figure this out.
好吧,我一直在做倒班工作,只是花了6个小时的时间来解决这个问题。
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.
以上所有信息都导致了这个结论,并在dos提示屏幕中出现了一行,当我退出编辑器时,进入dos提示我的C:驱动器被安装。
I did a dir
search and what I found was: the way in which I had mounted the C drive initially looked like this
我做了一个dir搜索,找到的是:我最初安装C驱动器的方式是这样的。
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:
而且我的dir没有列出C驱动器上的所有文件,只在turboc++文件夹内。由此我得出结论,我的目录应该是:
c:\include
c:\包括
not
不
c:\turboc++\tc\include
c:\ turboc tc + + \ \包括
or
或
c:\tc\include
c:\ tc \包括
The real problem was the nature in which I had mounted the drive.
真正的问题是我把车开到哪儿去了。
Hope this helps someone.
希望这可以帮助别人。
b.mac
b.mac
#1
11
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..
如果你有这样的问题,首先你的TC文件夹放入到C:..驱动器。完成安装后,打开turbo c蓝屏幕。有一个选项>目录。在这个过程中,您可以看到设置路径的选项。
- include directories..you can set path there now..
C:\TC\INCUDE
- 包括目录. .你可以在那里设置路径。C:\ TC \ INCUDE
- libraries Directories..you can set path there...
C:\TC\LIB
- 图书馆目录. .你可以在那里设置路径…C:\TC\LIB。
- 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
最后,你可以给出好的和完成的过程。它现在可以正常工作了。
#2
5
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.
这样做:打开你的涡轮c2文件夹,你有tc。exe文件,在这个文件旁边,你会找到另一个名为“tcinst”的文件。exe”打开它。
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.
在这里,您必须将目录的路径更改为包含文件夹所在的路径。同样的方法,也可以改变路径到库目录,也可以重新启动您的tc.exe。
#3
3
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:
检查一下你是否有像这样的东西。h文件和其他头文件包括文件夹和LIB文件夹。*包含了一些文件。在我的例子中,我有同样的问题,但是这两个文件夹都是空白的。很高兴知道。步骤:
- Press: ALT + O + D (i.e. press ATL (keep pressed) and then O english character) and then D).
- 按:ALT + O + D(即按下(按下),然后是英文字符),然后是D)。
- You'll see a popup window.
- 你会看到一个弹出窗口。
-
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,
此窗口将具有包含和LIB目录的值。在弹出窗口中,这两个框的默认值是:Drive leter,在那里您安装了TC……即C:\或D:\或其他路径,包括和LIB文件夹。所以,在我的例子中,
INCLUDE box was set to: "C:\TC\INCLUDE" and LIB directory value box was set to: "C:\TC\LIB" (without quotes). Steps to resolve:
包括box被设置为:“C:\TC\INCLUDE”和LIB目录值框被设置为:“C:\TC\LIB”(没有引号)。解决步骤:
-
Press ALT + C.
按ALT + C。
- Set your current directory as C:\TC\BGI
- 将当前目录设置为C:\TC\BGI。
- Press ALT + O + D, and put ../INCLUDE and ../LIB in Include/Lib directory values.
- 按ALT + O + D,然后放…/包括和. ./LIB目录中包含/LIB目录值。
- 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.
- 而现在……当你要取得进步时,你会对我说声谢谢。我喜欢我现在在DOS Turbo C上运行的archduchess C分形图形。哈哈
#4
3
Go to OPTIONS tab then select directories option then enter the particular path where your turbo c folder exists.
转到OPTIONS选项卡,然后选择目录选项,然后输入您的turbo c文件夹所在的特定路径。
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.
在所有四个消息框中输入路径,它将像在我的例子中那样开始工作。我有TurboC3,所有的文件都放在一个共同的根文件夹里。
#5
2
Check your environment include path. The file is not in the locations pointed by that environment variable.
检查您的环境包括路径。该文件不在该环境变量所指向的位置。
#6
1
Since you did not mention which version of Turbo C this method below will cover both v2 and v3.
因为您没有提到哪个版本的Turbo C,下面的方法将涵盖v2和v3。
- Click on 'Options', 'Directories', enter the proper location for the Include and Lib directories.
- 点击“选项”,“目录”,输入包含和Lib目录的适当位置。
#7
0
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).
在大多数系统中,你必须尽力不去找“
#8
0
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.
我不知道这在Turbo C里是什么,但我认为有一种方法可以做到。
#9
0
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
首先检查文件夹名称是否正确,因为当你从其他文件夹中复制到一个文件夹时,它会选择另一个文件夹地址,例如C而不是F,所以从选项>目录更改文件夹名。
#10
0
Just Re install the turbo C++ from your Computer and install again in the Directory C:\TC\ Folder.
只需重新安装计算机上的turbo c++,并在目录C:\TC\文件夹中重新安装。
Again The Problem exists ,then change the directory from FILE>>CHANGE DIRECTORY to C:\TC\BIN\
再次出现问题,然后将目录从>>更改目录改为C:\TC\BIN\。
#11
0
Well, I've been working backshift just spent about 6 hours trying to figure this out.
好吧,我一直在做倒班工作,只是花了6个小时的时间来解决这个问题。
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.
以上所有信息都导致了这个结论,并在dos提示屏幕中出现了一行,当我退出编辑器时,进入dos提示我的C:驱动器被安装。
I did a dir
search and what I found was: the way in which I had mounted the C drive initially looked like this
我做了一个dir搜索,找到的是:我最初安装C驱动器的方式是这样的。
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:
而且我的dir没有列出C驱动器上的所有文件,只在turboc++文件夹内。由此我得出结论,我的目录应该是:
c:\include
c:\包括
not
不
c:\turboc++\tc\include
c:\ turboc tc + + \ \包括
or
或
c:\tc\include
c:\ tc \包括
The real problem was the nature in which I had mounted the drive.
真正的问题是我把车开到哪儿去了。
Hope this helps someone.
希望这可以帮助别人。
b.mac
b.mac