The DJGPP compiler

本文提供了DJGPP编译器的基本安装步骤及所需文件列表,适用于DOS及Windows 95到XP的1x86平台。介绍了如何下载安装包、设置环境变量,并验证安装是否成功。
The DJGPP compiler is a DOS port of the unix GCC compiler for DOS (or windows 95->XP) 1x86 platforms.
If you want more than the basics visit the Zip picker
The minimum set of files you need to build my jukebox projects are:
PathDescriptionBytesDownload
v2/readme.1stInstallation instructions22,141USA UK
v2/copying.djDJGPP Copyright info2,084USA UK
unzip32.exeUnzip tool (if you need one)96,644USA UK
v2/djdev203.zipDJGPP Basic Development Kit1,530,778USA UK
v2gnu/bnu215b.zipBasic assembler & linker3,508,408USA UK
v2gnu/gcc343b.zipBasic GCC compiler3,781,700USA UK
v2gnu/mak3791b.zipMake (to processes makefiles)272,798USA UK
v2misc/csdpmi5b.zipCWSDPMI - DPMI server (to run under "real" DOS)54,550USA UK
To install these files:
  • Download these files (just click on the links)
  • Create a new directory to install them into (eg c:/djgpp, avoid spaces, and stick to 8.3 names)
    mkdir c:/djgpp
  • Unzip the files to this directory (creating the tree)
    unzip32.exe bnu215b.zip -d c:/djgpp
    unzip32.exe csdpmi5b.zip -d c:/djgpp
    unzip32.exe djdev203.zip -d c:/djgpp
    unzip32.exe gcc343b.zip -d c:/djgpp
    unzip32.exe mak3791b.zip -d c:/djgpp
  • Let the tools know where the djgpp.env file is:
    set DJDIR=c:/djgpp
  • Add the bin directory to your path,
    PATH=%DJDIR%/bin;%PATH%
Just to check
gcc -v
Should return a few lines, ending with
gcc version 3.4.3

Of course you don't have to install the tools into c:/djgpp, but you should avoid spaces in the path name, and keep each level below 8 characters (because the tools run with 8.3 filenames, and you can get aliasing otherwise). 
 
./Configure -des -Dprefix=/usr/local/perl CC=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-gcc CXX=/opt/x86_64-linux-musl-native/bin/x86_64-linux-musl-g++ LDFLAGS="-static -L/opt/x86_64-linux-musl-native/lib" CPPFLAGS="-I/opt/x86_64-linux-musl-native/include" First let's make sure your kit is complete. Checking... Locating common programs... Checking compatibility between /usr/bin/echo and builtin echo (if any)... Symbolic links are supported. Checking how to test for symbolic links... You can test for symbolic links with 'test -h'. Checking for cross-compile No targethost for running compiler tests against defined, running locally Good, your tr supports [:lower:] and [:upper:] to convert case. Using [:upper:] and [:lower:] to convert case. aix_3 dragonfly irix_5 nonstopux sunos_4_0 aix_4 dynixptx irix_6_0 openbsd sunos_4_1 aix dynix irix_6_1 opus super-ux altos486 epix irix_6 os2 svr4 amigaos esix4 isc_2 os390 svr5 atheos fps isc os400 ti1500 aux_3 freebsd linux-android posix-bc ultrix_4 bitrig freemint linux qnx umips bsdos gnukfreebsd lynxos riscos unicosmk catamount gnuknetbsd midnightbsd sco_2_3_0 unicos convexos gnu minix sco_2_3_1 unisysdynix cxux greenhills mips sco_2_3_2 utekv cygwin haiku mirbsd sco_2_3_3 uwin darwin hpux mpc sco_2_3_4 vos dcosx i386 ncr_tower sco dec_osf interix netbsd solaris_2 dos_djgpp irix_4 newsos4 stellar Which of these apply, if any? [linux] Operating system name? [linux] Operating system version? [5.14.0-503.14.1.el9_5.x86_64] Installation prefix to use? (~name ok) [/usr/local/perl] Directory /usr/local/perl doesn't exist. Use that name anyway? [y] AFS may be running... I'll be extra cautious then... What installation prefix should I use for installing files? (~name ok) [/usr/local/perl] Directory /usr/local/perl doesn't exist. Use that name anyway? [y] Getting the current patchlevel... Build a threading Perl? [n] Build Perl for multiplicity? [n] Use which C compiler? [cc] ./trygcc: line 10: cc: command not found Uh-oh, the C compiler 'cc' doesn't seem to be working. You seem to have a working gcc, though. *** However, any setting of the C compiler flags (e.g. for thread support) *** will be lost. It may be necessary for you to restart Configure and *** add -Dcc=gcc to your Configure command line. Would you like to go ahead and try gcc anyway? [n] ./checkcc: line 10: cc: command not found Uh-oh, the C compiler 'cc' doesn't seem to be working. You need to find a working C compiler. Either (purchase and) install the C compiler supplied by your OS vendor, or for a free C compiler try http://gcc.gnu.org/ I cannot continue any further, aborting.
06-11
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值