This is the mail archive of the
mailing list for the GCC project.
RE: c++ name mangling question
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 15 Nov 2001 07:36:27 +1100 (EST)
- Subject: RE: c++ name mangling question
> I have some questions about the c++ name mangling on the win32 port of
Read the fine manual:
"GNU C++ does not do name mangling in the same way as other C++ compilers.
This means that object files compiled with one compiler cannot be used with
This effect is intentional, to protect you from more subtle problems.
Compilers differ as to many internal details of C++ implementation,
including: how class instances are laid out, how multiple inheritance is
implemented, and how virtual function calls are handled. If the name
encoding were made the same, your programs would link against libraries
provided from other compilers--but the programs would then crash when run.
Incompatible libraries are then detected at link time, rather than at run
http://briefcase.yahoo.com.au - Yahoo! Briefcase
- Manage your files online.