Force C++ symbol names

Robert Spanton rob@xgoat.com
Fri Dec 6 13:06:00 GMT 2002


Thanx

----- Original Message -----
From: "John Love-Jensen" <eljay@adobe.com>
To: <rob@xgoat.com>; <gcc-help@gcc.gnu.org>
Sent: Friday, December 06, 2002 8:39 PM
Subject: Re: Force C++ symbol names


> hi Robert,
>
> You can use the extern "C" directive, to tell the compiler to use the C
ABI.
>
> extern "C" int i = 3
> extern "C" int foo(int a, int b) { return a + b; }
>
> --Eljay




More information about the Gcc-help mailing list