On Sun, Jan 05, 2003 at 02:35:09PM -0800, Ryan Murray wrote: > > How do I know what ABI a given g++ is using? > > The following command will show you the C++ ABI version being used by > g++: > g++ -E -dM - < /dev/null | awk '/GXX_ABI/ {print $3}' > This doesn't work for gcc 2.95: $ g++ -E -dM - < /dev/null | awk '/GXX_ABI/ {print $3}' $ g++ -E -dM - #define __linux__ 1 #define linux 1 #define __i386__ 1 #define __i386 1 #define __GNUC_MINOR__ 95 #define i386 1 #define __unix 1 #define __unix__ 1 #define __GNUC__ 2 #define __linux 1 #define __ELF__ 1 #define unix 1 g++ -E -dm doesn't give any GXX_ABI in its output. If I specify g++-3.2, I get the response expected: $ g++-3.2 -E -dM - < /dev/null | awk '/GXX_ABI/ {print $3}' 102 Drew p.s. I thought mail going through debian-devel-announce@lists.debian.org was supposed to get its Reply-To set to debian-devel@lists.debian.org. Isn't that what the mailing list daemon is supposed to do? -- PGP public key available at http://people.debian.org/~dparsons/drewskey.txt Fingerprint: A110 EAE1 D7D2 8076 5FE0 EC0A B6CE 7041 6412 4E4A
Attachment:
pgpQT6R4Te1U8.pgp
Description: PGP signature