|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 61 楼』:
我对djgpp的一点体会.
使用 LLM 解释/回答一下
著名的开发工具包allegro就在这个目录里.
The famous development toolkit Allegro is right in this directory.
附件
1: djgpp内v2tk目录最新包.JPG (2005-11-19 22:39, 44.42 KiB, 下载附件所需积分 1 点
,下载次数: 5)
|
|
2005-11-19 22:39 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 62 楼』:
我对DJGPP的一点体会.
使用 LLM 解释/回答一下
让我精简后,我把它压缩了一下,整个开发包的大小由原来900多M减到68M.大家不要下载无用的旧的东东.
After I streamlined it, I compressed it. The size of the entire development package was reduced from more than 900 MB to 68 MB. Everyone, don't download useless old stuff.
附件
1: 精减后的大小.JPG (2005-11-19 22:42, 23.61 KiB, 下载附件所需积分 1 点
,下载次数: 3)
|
|
2005-11-19 22:42 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 63 楼』:
我对DJGPP的一点体会
使用 LLM 解释/回答一下
后面的工作就是如何的搭好开发环境了.把所有的包在各自的目录内解压.解压后,再删除原来的打压包文件,这样,就型成最新开发环境.但是,这还不能使用.还要配置一点参数的.我怎么样来取得最新版本呢?我是要根同一个目要下,同一个系列有最大的版本号文件.则取其为最新版本.同时,根据其后缀有一个B的,我也参考了主页上的分析.
The subsequent work is how to set up the development environment properly. Unzip all the packages in their respective directories. After unzipping, delete the original compressed package files, and then the latest development environment is formed. But this still can't be used. Some parameters also need to be configured. How can I obtain the latest version? I need to take the file with the largest version number in the same directory and the same series as the latest version. At the same time, those with a suffix of B are also referred to the analysis on the homepage.
附件
1: djgpp的IDE工具.JPG (2005-11-19 23:00, 44.47 KiB, 下载附件所需积分 1 点
,下载次数: 3)
|
|
2005-11-19 23:00 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 64 楼』:
我对DJGPP的一点体会
使用 LLM 解释/回答一下
从上图可知,DJGPP有一个著名的IDE工具.叫 rhide.exe,和它一起的文件有四个,在DJGPP\V2apps\bin目录内.我运行了一下,便提示它的最新版本,是:1.5版.其实只不过是一个IDE工具,并非是真实的编译器,它也是通过调用编译器实现编译的.
From the above picture, it can be seen that DJGPP has a famous IDE tool called rhide.exe. There are four files along with it, located in the DJGPP\V2apps\bin directory. I ran it and it prompted its latest version, which is version 1.5. In fact, it is just an IDE tool, not a real compiler. It also compiles by calling the compiler.
|
|
2005-11-19 23:05 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 65 楼』:
我对DJGPP的一点体会.
使用 LLM 解释/回答一下
下面,我来启动IDE工具,看看什么样子.
Below, I'll start the IDE tool and see what it looks like.
附件
1: 没有设置环境变量启动IDE会有错误.JPG (2005-11-19 23:12, 81.23 KiB, 下载附件所需积分 1 点
,下载次数: 4)
|
|
2005-11-19 23:12 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 66 楼』:
我对djgpp的一点体会.
使用 LLM 解释/回答一下
启动后的第一个画面便提示有错误,提示没有为djgpp设置环境变量.问你是否继续进入IDE环境.因为进入也不能用.所以,我选N,退到DOS平台下,为其设置环境变量.如图:
The first screen after startup prompts an error, indicating that the environment variable for djgpp is not set. It asks if you want to continue entering the IDE environment. Since it can't be used even if you enter, so I choose N and return to the DOS platform to set its environment variable. As shown in the figure:
附件
1: 设置djgpp的环境变量.JPG (2005-11-19 23:14, 29.29 KiB, 下载附件所需积分 1 点
,下载次数: 3)
|
|
2005-11-19 23:14 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 67 楼』:
我对DJGPP的一点体会.
使用 LLM 解释/回答一下
阅读readme.1st文件后,我在djgpp\v2的目录中,找到了.djgpp.env的文件,在dos下输入根据readme.1st的建义输入set djgpp=d:\djgpp\v2\djgpp.env,我是把DJGPP安装在D盘的根目录,各人应要自己的安装的具体目录作改变.上图设置好变量以后,再次输入djgpp\v2apps\bin\rhide.exe ,打开IDE工具.
After reading the readme.1st file, I found the .djgpp.env file in the djgpp\v2 directory. Under DOS, enter set djgpp=d:\djgpp\v2\djgpp.env as suggested in readme.1st. I installed DJGPP in the root directory of drive D, and everyone should change it according to their own specific installation directory. After setting the variable as shown in the picture, enter djgpp\v2apps\bin\rhide.exe again to open the IDE tool.
附件
1: 设置环境变量后的IDE启动界面.JPG (2005-11-19 23:28, 68.6 KiB, 下载附件所需积分 1 点
,下载次数: 3)
|
|
2005-11-19 23:28 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 68 楼』:
我对DJGPP的一点体会.
使用 LLM 解释/回答一下
阅读readme.1st文件后,我在djgpp\v2的目录中,找到了.djgpp.env的文件,在dos下输入根据readme.1st的建义输入set djgpp=d:\djgpp\v2\djgpp.env,我是把DJGPP安装在D盘的根目录,各人应要自己的安装的具体目录作改变.上图设置好变量以后,再次输入djgpp\v2apps\bin\rhide.exe ,打开IDE工具.
After reading the readme.1st file, I found the .djgpp.env file in the djgpp\v2 directory. Under DOS, enter the command as suggested in readme.1st: set djgpp=d:\djgpp\v2\djgpp.env. I installed DJGPP in the root directory of drive D, and everyone should change it according to their own specific installation directory. After setting the variable as shown in the picture, enter djgpp\v2apps\bin\rhide.exe again to open the IDE tool.
附件
1: 设置环境变量后的IDE启动界面.JPG (2005-11-19 23:29, 68.6 KiB, 下载附件所需积分 1 点
,下载次数: 3)
|
|
2005-11-19 23:29 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 69 楼』:
我对djgpp的一点体会.
使用 LLM 解释/回答一下
下面,让我们来开始编写第一个hello word程序,感受一下djgpp到底有什么不一样.呵呵.
在IDE里输入一个hello程序,从菜单里打开编译菜单运行,如图,可是出现:bad command or file name 错误.
这是什么错误呢?对DOS熟悉的朋友知可以想到,在DOS下,如果输入一个DOS不认识的命令,同样出这个错误.可以想象,IDE也向DOS调用一个非法命令.我想,应是IDE找不到编译程序所在路径吧.参况readme.1st,应加上编译命令文件所在的path.
Now, let's start writing the first hello world program and experience what's different about djgpp. Hehe. Enter a hello program in the IDE, open the compile menu from the menu to run, as shown in the figure, but the error "bad command or file name" appears. What kind of error is this? Friends familiar with DOS can think that in DOS, if you enter a command that DOS doesn't recognize, the same error occurs. It can be imagined that the IDE also calls an illegal command to DOS. I think it should be that the IDE can't find the path where the compiler program is located. Refer to readme.1st, and the path where the compile command file is located should be added.
附件
1: djgpp的hello程序.JPG (2005-11-20 00:10, 45.77 KiB, 下载附件所需积分 1 点
,下载次数: 3)
|
|
2005-11-20 00:10 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 70 楼』:
偶对DJGPP的一点体会.
使用 LLM 解释/回答一下
先保存到文件到当前目录下,退出IDE环境,设置编译文件所在路径的path,readme.1st里提出,编译文件时,用gcc.exe.在dos下查调一下该命令在那一个目录下.
First, save it to the current directory. Exit the IDE environment. Set the path of the directory where the compiled file is located. The readme.1st mentions that when compiling the file, use gcc.exe. Check in DOS which directory this command is in.
附件
1: 查找gcc所在的路径.JPG (2005-11-20 00:14, 27.84 KiB, 下载附件所需积分 1 点
,下载次数: 2)
|
|
2005-11-20 00:14 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 71 楼』:
我对djgpp的一点体会.
使用 LLM 解释/回答一下
在dos命令提示符下输入
dir gcc.exe/s
从而查到gcc.exe所在的路径
为了ide工具设置为path,在DOS命令提示符下输入
set path=...
如图:
In the DOS command prompt, enter `dir gcc.exe /s` to find the path where gcc.exe is located. To set the path for the IDE tool, enter `set path=...` in the DOS command prompt. As shown in the figure:
附件
1: 输入dos命令为gcc设置path.JPG (2005-11-20 00:21, 30.28 KiB, 下载附件所需积分 1 点
,下载次数: 2)
|
|
2005-11-20 00:21 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 72 楼』:
我对djgpp的一点体会.
使用 LLM 解释/回答一下
设置好path以后,再次进入RHIDE.EXE
打开刚在编写的hello word程序,该可以想象,开始时,类库的的路径也没有设置,用过TC的网友可能想到,在菜单中应有一个专门设置lib,include等路径的地方.
After setting up the path, enter RHIDE.EXE again. Open the just-written hello word program. It can be imagined that initially, the path of the library was not set. Netizens who have used TC may think that there should be a special place in the menu to set the paths for lib, include, etc.
附件
1: 设置好path以后再次进入编译hello程序.JPG (2005-11-20 00:42, 44.7 KiB, 下载附件所需积分 1 点
,下载次数: 2)
附件
2: 设置工开发环境的工作目录.JPG (2005-11-20 00:42, 45.11 KiB, 下载附件所需积分 1 点
,下载次数: 2)
|
|
2005-11-20 00:42 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 73 楼』:
我对djgpp的一点体会.
使用 LLM 解释/回答一下
以上图,就像TC那样,一一为其设置include,lib等的路径.
我们怎么知道该设置什么样的目录呢?
其实,我们看看hello word程序就知道#include<stdio.h>
根据同样的道理,我们在dos下的目录d:\djgpp\下查调一下stdio.h在那一个地方.然后就在ide中为其设置include目录就行了.有include目录的地方,也应有lib目录的地方.
再次退出,在dos下:
d:\djgpp\>dir stdio.h /s
则可以知道,该文件就在d:\djgpp\v2\include中.
所以,lib也就在d:\djgpp\v2\lib中.
在ide中输入分别输入include和lib目录,如图.
Set the include, lib and other paths one by one as in TC with the above figure. How do we know what directories to set? Actually, we can know from the hello word program that #include <stdio.h>. According to the same principle, we check in the directory d:\djgpp\ under DOS to find where stdio.h is. Then we set the include directory in the IDE. Where there is an include directory, there should also be a lib directory. Exit again, and under DOS: d:\djgpp\>dir stdio.h /s, then we can know that the file is in d:\djgpp\v2\include. So the lib is also in d:\djgpp\v2\lib. Enter the include and lib directories respectively in the IDE, as shown in the figure.
附件
1: 查找stdio.h所在的目录.JPG (2005-11-20 00:56, 28.59 KiB, 下载附件所需积分 1 点
,下载次数: 2)
附件
2: 设置include具体路径.JPG (2005-11-20 00:56, 48.1 KiB, 下载附件所需积分 1 点
,下载次数: 2)
|
|
2005-11-20 00:56 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 74 楼』:
我对djgpp的一点体会.
使用 LLM 解释/回答一下
lib的目录是和include在一起的.改一下就行了.
The directory of the lib is together with include. Just make a change.
附件
1: 设置lib具体路径.JPG (2005-11-20 00:59, 47.8 KiB, 下载附件所需积分 1 点
,下载次数: 2)
|
|
2005-11-20 00:59 |
|
|
lucky9981
初级用户
 
积分 52
发帖 26
注册 2005-11-19
状态 离线
|
『第 75 楼』:
我对djgpp的一点体会.
使用 LLM 解释/回答一下
重新打开一下
小心的网友应看到了吧.输入的是d:\djgpp\v2\lib后,再次打开,则变成
d:/djgpp/v2/lib,IDE工具会自动转换的.关于这点的原因,是因为gun最初在unit系统上使用.路径是用"/"表示,而在window下,路径是用"\"表示的.
这点IDE自己会处理.我们不必理会它.
下面,再输入object和source的路径就行了.
object direction是指生成的.obj文件存放的路径.如:hello.obj
source direction是指原代码的存放的路径,如:hello.c
我默认都是当前工作目录,比如:
d:\djgpp\v2apps\bin
编译时,编译器会根据当前的设置找到hello.c来编译生成hello.obj,连接成hello.exe
Reopen it carefully. The careful netizens should have seen it. After entering d:\djgpp\v2\lib and opening it again, it becomes d:/djgpp/v2/lib. The IDE tool will automatically convert it. The reason for this is that gun was originally used on the unit system, where paths are represented by "/", while on Windows, paths are represented by "\". This is handled by the IDE itself. We don't need to worry about it. Next, just enter the paths for object and source. Object direction refers to the path where the generated.obj files are stored, such as hello.obj. Source direction refers to the path where the original code is stored, such as hello.c. I default to the current working directory, for example: d:\djgpp\v2apps\bin. When compiling, the compiler will find hello.c according to the current settings, compile it to generate hello.obj, and link it into hello.exe.
附件
1: 设置object具体路径.JPG (2005-11-20 01:09, 48.13 KiB, 下载附件所需积分 1 点
,下载次数: 2)
附件
2: 设置source的路径.JPG (2005-11-20 01:09, 48.05 KiB, 下载附件所需积分 1 点
,下载次数: 2)
|
|
2005-11-20 01:09 |
|
|