This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: dynamic linking with c++
- From: Wanner Vinicius Fagundes Lima <wanner at comp dot ufla dot br>
- To: John Love-Jensen <eljay at adobe dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Thu, 8 May 2003 17:35:07 -0300 (BRT)
- Subject: Re: dynamic linking with c++
Thanck you so much, John!
You are right.
On Wed, 7 May 2003, John Love-Jensen wrote:
> Hi Wanner,
>
> I bet the PAM module requires C ABI.
>
> If so, you need to put ...
> extern "C"
> ... in front of your shared routines.
>
> Example...
> extern "C" int getStatus();
> extern "C" void setStatus(int i);
>
> --Eljay
>
>
--
|--------------------------------|
| Wanner Vinicius Fagundes Lima |
| Ciencia da Computacao - UFLA |
| Linux User # 227651 |
| ICQ # 14495104 |
| www.comp.ufla.br/~wanner |
|--------------------------------|