Query:linking

Alexandre Oliva aoliva@redhat.com
Thu May 3 03:53:00 GMT 2001


On May  3, 2001, "Bipin T S" <bipin@lgsi.co.in> wrote:

> Can anyone tell me the reason for this behavior?

C++ functions are mangled because they can be overloaded.  Declare
them as extern "C" to avoid name mangling.

This question is not about the development of GCC, so it's not
appropriate for this mailing list.  Please use gcc-help next time.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me



More information about the Gcc mailing list