Tu peux utiliser autoconf, avec par exemple :
VERSION_MAJOR=1
VERSION_MINOR=20
AM_INIT_AUTOMAKE(programme,"$VERSION_MAJOR"."$V
ERSION_MINOR" )
(non testé)
Puis dans un version.h.in tu mets :
#define VERSION_MAJOR @VERSION_MAJOR@
#define VERSION MINOR @VERSION_MINOR@
#define PRETTY_NAME "Software @VERSION_MAJOR@.@VERSION_MINOR@"
Comme ça en plus, autoconf connaît le numéro de version, c'est préférable.
[jfdsdjhfuetppo]--Message édité par Jar Jar--[/jfdsdjhfuetppo]
---------------
« No question is too silly to ask, but, of course, some are too silly to answer. » -- Perl book