dynamic linking with c++

John Love-Jensen eljay@adobe.com
Wed May 7 19:13:00 GMT 2003


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




More information about the Gcc-help mailing list