China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-01 03:02
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Now there is a very good programming environment under DOS - DJGPP View 54,264 Replies 136
Floor 76 Posted 2005-11-20 01:17 ·  中国 广东 深圳 福田区 电信
初级用户
Credits 52
Posts 26
Joined 2005-11-19 22:04
20-year member
UID 45573
Status Offline
After setting up the environment working directory, it's time to compile the hello.c program. On the menu, under the compile main menu, respectively click:

compile
make
link

Finally, see in the bottom information bar:

Creating hello.exe
no errors.

Indicating successful passage.
Attachments
最后再次编译成功通过.JPG
Floor 77 Posted 2005-11-20 01:24 ·  中国 广东 深圳 福田区 电信
初级用户
Credits 52
Posts 26
Joined 2005-11-19 22:04
20-year member
UID 45573
Status Offline
That's all for the simple part.
If there are any improper statements, I hope everyone can correct them.
Welcome to write to discuss together.
lucky9981@hotmail.com
Floor 78 Posted 2005-11-20 01:36 ·  中国 广东 深圳 福田区 电信
初级用户
Credits 52
Posts 26
Joined 2005-11-19 22:04
20-year member
UID 45573
Status Offline
This thing is free, downloadable freely. Long-term effective. But the speed is not acceptable for ordinary people. Hehe. One should download selectively.
http://www.delorie.com/pub/djgpp/current/
Floor 79 Posted 2005-11-29 14:37 ·  中国 重庆 广电网
中级用户
★★
Credits 236
Posts 101
Joined 2005-11-27 19:35
20-year member
UID 46050
Status Offline
watcom is okay too
Floor 80 Posted 2005-12-01 20:27 ·  中国 江苏 苏州 吴江区 电信
初级用户
Credits 32
Posts 16
Joined 2005-11-28 18:19
20-year member
UID 46122
Status Offline
DJGPP seems to have few Chinese materials, right?
Floor 81 Posted 2005-12-28 10:51 ·  中国 广西 柳州 电信
初级用户
Credits 59
Posts 18
Joined 2005-12-25 08:50
20-year member
UID 47830
Status Offline
Are there many materials about Watcom C++?
Floor 82 Posted 2006-02-12 15:41 ·  中国 江西 南昌 电信
中级用户
★★
Credits 486
Posts 171
Joined 2006-02-12 13:53
20-year member
UID 50233
Status Offline
It's best to use OpenWatcom, which can compile the smallest C program under DOS.

Download for DOS version: http://www.ibiblio.org/pub/micro/pc-stuff/freedos/files/devel/c/owatcom/watcom.zip
Floor 83 Posted 2006-02-14 14:46 ·  中国 广东 汕头 电信
初级用户
Credits 36
Posts 18
Joined 2006-02-14 13:43
20-year member
UID 50340
Status Offline
I'm just using mdc (Digital Mars C++), which is quite useful.
Floor 84 Posted 2006-03-16 04:35 ·  中国 台湾 和信超媒体宽带网
初级用户
Credits 20
Posts 10
Joined 2006-03-13 04:47
20-year member
UID 51911
Gender Male
From Tainan
Status Offline
http://gd.tuwien.ac.at/pc/dos/

http://gd.tuwien.ac.at/pc/dos/djgpp/current/

Here is also

[ Last edited by sungp on 2006-3-16 at 04:37 ]
Floor 85 Posted 2006-03-24 09:16 ·  中国 吉林 吉林市 教育网
新手上路
Credits 14
Posts 3
Joined 2006-03-24 08:59
20-year member
UID 52699
Gender Male
From china
Status Offline
After I boot into pure DOS with Windows Me
There, I execute set djgpp=c:/djgpp/djgpp.env
set path=c:/djgpp/bin
Then execute rhid to write a small program there
It can be compiled without errors
But there is an error during linking, saying that -lgcc is missing, too many file open in system
Please help the expert to solve it, and can a GUI like Windows be developed under pure DOS?
Floor 86 Posted 2006-04-03 11:11 ·  中国 北京 联通
新手上路
Credits 2
Posts 1
Joined 2005-07-16 16:56
21-year member
UID 40776
Status Offline
http://www.delorie.com/djgpp/zip-picker.html
Choose the following two options
Select a suitable FTP site:
Which programming languages will you be using?
Check the C++ option
Then submit
Just download all the files that appear
Floor 87 Posted 2006-04-24 20:44 ·  中国 浙江 嘉兴 电信
初级用户
Credits 44
Posts 17
Joined 2006-04-24 20:21
20-year member
UID 54389
Status Offline
There are so many Djgpp + allegro enthusiasts! Happy!
Floor 88 Posted 2006-05-25 10:19 ·  中国 广东 深圳 宝安区 电信
高级用户
★★★
Credits 793
Posts 312
Joined 2004-09-02 00:00
21-year member
UID 31104
Gender Male
Status Offline
I'm not proficient in programming, just purely supporting.
Floor 89 Posted 2006-06-16 01:19 ·  中国 福建 三明 电信
高级用户
★★
苏醒的沉睡者
Credits 659
Posts 217
Joined 2003-02-15 00:00
23-year member
UID 930
Gender Male
From 福建
Status Offline
DJGPP is fine in other aspects, just the optimization is not good, there are many garbage codes. A simple program to display "hello, new world" is as big as 89KB. Miss the Borland compiler. Still, assembly is the most concise. Hehe, even if the hard disk is large, it doesn't matter.

[ Last edited by 070 on 2006-6-16 at 01:21 ]
好久没碰Dos,手都生了,赶紧回来练练.嘿嘿
Floor 90 Posted 2006-10-06 12:49 ·  中国 重庆 万州区 电信
初级用户
Credits 112
Posts 48
Joined 2006-10-06 03:41
19-year member
UID 64666
Status Offline
Sweat...
I don't know if it can be done at the bottom layer with assembly, and the shell with QB or something like that...
Similar to freebasic, where assembly can be embedded inside... (It's just that it's frustrating that it can't do multi-threading under DOS.)
‹ Prev 1 4 5 6 7 8 10 Next ›
Forum Jump: