TIP: Click on subject to list as thread! ANSI
echo: c_plusplus
to: PAUL WANKADIA
from: JERRY COFFIN
date: 1997-06-07 16:49:00
subject: C++ linkage

On (04 Jun 97) Paul Wankadia wrote to All...
 PW> I've noticed that gcc likes to mangle my C++ functions by adding info
 PW> about the parameters to the end of the symbol.  Of course, this is
 PW> ridiculous when I want to call these functions from ASM code, so I
 PW> was wondering if there was a way of preventing that kind of mangling
 PW> from occurring.  TIA.
Generally you have to declare them as:
extern "C" {
    my_func(params);
}
to keep mangling from occurring.
    Later,
    Jerry.
... The Universe is a figment of its own imagination.
--- PPoint 1.90
---------------
* Origin: Point Pointedly Pointless (1:128/166.5)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.