PACKAGE and VERSION defines

Benjamin Kosnik bkoz@cygnus.com
Mon Nov 1 09:34:00 GMT 1999


> i wonder why PACKAGE and VERSION are defined in include/g++-v3/bits/c++config.h which is included in a lot of c++-includes.
> 
> they are usually defined in the project's config.h, created by autoheader (gnu autoconf suite). i want to use the autoconf system to
> set version information and now i have to use ugly workarounds.

see bits/c++config.h:

// The current version of the C++ library in compressed ISO date format.
#define __GLIBCPP__ 19990804

This is the macro you should key off of, as it changes for each 
snapshot/release.

> and why is VERSION currently defined "2.90.5" instead of "2.90.6.1"?

Thanks for pointing this out.

-benjamin


More information about the Libstdc++ mailing list