Mail Archives: djgpp/1998/01/10/23:15:34
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 <stdio.h>
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 |
---------------------------------------------------------------------
- Raw text -