PACKAGE and VERSION defines
Gerd v. Egidy
egidy@deam.de
Mon Nov 1 11:38:00 GMT 1999
Hi Benjamin,
thanks for your quick reply.
> > 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.
thanks for pointig this out. if i need to get the c++ library version i will use that one.
but i think you misunderstood me. my problem is not to get the version of the c++ library but the version of my program (wich is
using libstdc++).
i want to use PACKAGE and VERSION to store the version etc. of _my_program_ because those defines are standard to do so (gnu
autoconf).
but i can't do that now, because libstc++ blocks those defines and i have to care about the order of the includes in my programs to
let the right define through.
so i ask if you could drop those defines in libstdc++. i think this wouldn't be a problem because you have the __GLIBCPP__ define to
store the version.
Regards,
Gerd
More information about the Libstdc++
mailing list