中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-15 02:57
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS软件下载 & 游戏分享 (下载室) » Question about dgjpp settings
Printable Version  1,680 / 3
Floor1 hit Posted 2003-04-15 00:00
初级用户 Posts 148 Credits 688 From 陕西
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`
Floor2 Wengier Posted 2003-04-15 00:00
系统支持 Posts 10,521 Credits 27,736
Then basically it's a problem with the C program itself. Please modify the source code of TEST.C.
Floor3 hit Posted 2003-04-16 00:00
初级用户 Posts 148 Credits 688 From 陕西
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?
Floor4 Wengier Posted 2003-04-16 00:00
系统支持 Posts 10,521 Credits 27,736
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.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023