From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Checking the version of Djgpp I have Date: Sat, 10 Jan 1998 22:59:18 -0500 Organization: Two pounds of chaos and a pinch of salt. Lines: 35 Message-ID: <34B84396.7B01@cs.com> References: <6992nh$o2i AT examiner DOT concentric DOT net> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp232.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Andy Fung wrote: > > Hi, > Is there a way to check which version of Djgpp I have ? > I wanted to know because I might want to download version 2.1 if I don't > have 2.1. First, look at your distribution zipfiles, if you kept them. If you have 'djdev201.zip', 'gcc2721b.zip', 'bnu281b.zip', and other files named in the latest 'readme.1st', then you certainly have version 2.01. If you didn't keep the zipfiles, look in your 'manifest' directory for the same items: 'djdev201.mft', etc. If you want to test your DJGPP version in a program, you can use the DJGPP and DJGPP_MINOR macros, as follows: /* djgppver.c */ /* Reports installed DJGPP version. */ /* Compile with "gcc -Wall -g -O -o djgppver.exe djgppver.c" */ #include int main( void ) { printf( "DJGPP = %d DJGPP_MINOR = %d\n", DJGPP, DJGPP_MINOR ); return 0; } -- --------------------------------------------------------------------- | John M. Aldrich | "Sin lies only in hurting other | | aka Fighteer I | people unnecessarily. All other | | mailto:fighteer AT cs DOT com | 'sins' are invented nonsense." | | http://www.cs.com/fighteer | - Lazarus Long | ---------------------------------------------------------------------