On Thursday 01 May 2008 03:31:35 pm Aaron Turner wrote: > Unless I'm blind, there doesn't seem to be any way to look at a > libopts tearoff and figure out what version of autogen it came from. > Since autogen/libopts has such tight versioning controls (you can't > process autogen .def files with one version of autogen and use a > different libopts tearoff) it would be really nice for me to be able > to check version compatibility before I get to the compile phase.
That is supposed to happen, but it is deferred until the compile. This code is supposed to do that: > #define AO_TEMPLATE_VERSION 126977 > #if (AO_TEMPLATE_VERSION < OPTIONS_MINIMUM_VERSION) \ > || (AO_TEMPLATE_VERSION > OPTIONS_STRUCT_VERSION) > # error option template version mismatches autoopts/options.h header > Choke Me. > #endif but that is a little obtuse. How about if I stamp the "options.h" header with the relevant autogen version? (like I already do with the autoopts version) Cheers - Bruce ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Autogen-users mailing list Autogen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/autogen-users