Mail Archives: djgpp/1998/04/20/18:47:43
There are Preprocessor commands that do these things. This is more of a C
problem then a DJGPP problem... Try this out...
#include <stdio.h>
#define VERSION 100 // 1.00 for the heck of it
int main()
{
printf("Compiled at %s on %s\n", __TIME__, __DATE__);
printf("Pretend error: variable d < 0 line %d\n", __LINE__);
}
You could have VERSION a command-line variable with the -D option and makefile
could specify a version of your program would accept. RHIDE could do it, though
I don't have exact instructions.
--
"DeHackEd"
EMail address not given out due to low-life spammers.
Dervarics Mate wrote in message ...
>Is there any method to compile the build number into the exe file? Like
>you can include the date and the version of the compiler in your program?
>Is it compiler or IDE specific? (I use DFE and RHIDE)
> Greg
>
- Raw text -