Determining libstdc++ version at compile time
Jason Merrill
jason@redhat.com
Tue Mar 20 05:19:00 GMT 2001
>>>>> "Craig" == Craig Rodrigues <rodrigc@mediaone.net> writes:
> I just looked for that macro and saw that it exists
> on libstdc++-v3 but not on libstdc++-v2. Is this correct?
> So, my preprocessor check could go something like:
> #if (defined (__GLIBCPP__) && __GLIBCPP__ >= 20010301 )
You don't need the 'defined' check. If you write
#if __GLIBCPP__ >= 20010301
and __GLIBCPP__ isn't defined, it evaluates to 0.
Jason
More information about the Libstdc++
mailing list