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-09-15 03:24
中国DOS联盟论坛 » DOS软件下载 & 游戏分享 (下载室) » Question about dgjpp settings View 1,681 Replies 3
Original Poster Posted 2003-04-15 00:00 ·  中国 陕西 西安 教育网
初级用户
★★
孤胆枪手
Credits 688
Posts 148
Joined 2002-10-26 00:00
23-year member
UID 63
Gender Male
From 陕西
Status Offline
set djgpp etc. have already been set.
Running gcc test.c
gives the message c:/djgpp/lib/crt0.o (.date+0xl2): crt0.s:undefined reference to `_main`
我:╭∩╮(︶︿︶)╭∩╮。靠!!!
Floor 2 Posted 2003-04-15 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Then basically it's a problem with the C program itself. Please modify the source code of TEST.C.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-04-16 00:00 ·  中国 陕西 西安 教育网
初级用户
★★
孤胆枪手
Credits 688
Posts 148
Joined 2002-10-26 00:00
23-year member
UID 63
Gender Male
From 陕西
Status Offline
Shouldn't test.c be an already written C program file?
Using edit or some other text program should also work, right?
Also, DJGPP syntax should not be much different from TC++, right?
我:╭∩╮(︶︿︶)╭∩╮。靠!!!
Floor 4 Posted 2003-04-16 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
More than 90% of the code is compatible between DJGPP and TC, but a small amount of code needs to be modified before it can compile normally. You can use commands like EDIT to make the changes.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Forum Jump: