Topic: How to use djgpp to build a DOS program in DOSEmu (running in Linux) ?
1. Install dosemu
DOSEmu (dosemu HOWTO)
2. Download djgpp files for dosemu
DJGPP (this name comes from ... DJ's GNU Programming Platform)
Use DJGPP Zip File Picker to download what you need (select dosemu for Operating System)
3. Install djgpp into dosemu
Refer to "installation instructions for dosemu" shown in DJGPP Zip File Picker Results. Key points:
* unzip those *.zip files to ~/djgpp/ (~ is your home in Linux)
* edit ~/.dosemu/drvie_c/autoexec.bat :
set PATH=d:\djgpp\BIN;%PATH%
set DJGPP=d:\djgpp\DJGPP.ENV
(dosemu defaults D:\ to ~/)
* reboot dosemu
4. Compile a helloworld in dosemu
* Edit main.c and its Makefile in ~/helloworld/ under Linux
* Then in dosbox, cd D:\helloworld\ and try to make it !
(gcc -o helloworld.exe main.c)
沒有留言:
張貼留言