This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: dynamic linking with c++
- From: John Love-Jensen <eljay at adobe dot com>
- To: Wanner Vinicius Fagundes Lima <wanner at comp dot ufla dot br>, <gcc-help at gcc dot gnu dot org>
- Date: Wed, 07 May 2003 14:11:52 -0500
- Subject: Re: dynamic linking with c++
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