From: James Yonan Subject: Re: [Openvpn-devel] Re: Re: Radius support (Authentification, Authorization and Accounting) In-Reply-To: Message-ID: References: <200504291033.00667.ralfluebben@...68...> <200505031348.25263.ralfluebben@...68...> <1116334849.14388.43.camel@...23...> <1116337185.14388.71.camel@...23...> MIME-Version: 1.0 Sender: openvpn-devel-admin@lists.sourceforge.net Errors-To: openvpn-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Fri May 20 09:39:00 2005 Content-Type: TEXT/PLAIN; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: Ralf =?UTF-8?B?TMO8YmJlbg==?= Cc: openvpn-devel@lists.sourceforge.net On Fri, 20 May 2005, Ralf [UTF-8] L=C3=BCbben wrote: > Hello, >=20 > I have a big problem with my programm.=20 > I developed it with a test main function with the > openvpn_plugin_open_v1, openvpn_plugin_func_v1 and openvpn_plugin_close_v1 > function and everything works fine.=20 > I used some c++-libraries and my whole radius stuff is in a c++-class.=20 > When I compile my programm as a shared library with the g++ and use it wi= th > OpenVpn I get the following error: >=20=20 > Fri May 20 17:34:32 2005 us=3D538779 PLUGIN: could not find symbol > 'openvpn_plugin_open_v1' in plugin shared > object /root/test/auth-pam.so: /usr/sbin/openvpn: undefined symbol: > openvpn_plugin_open_v1 >=20 > I think the problem is that I use c++, if I compile with the gcc the > openvpn_plugin_open_v1 is found and the c++-objects are not fornd. >=20 > Is it possible to use the c++-classes and my radius classes with shared > libraries in OpenVpn? > At the moment I have no idea to solve this. You can declare C function prototypes in C++ code with extern "C" { include "openvpn-plugin.h" } to maintain compatibility between the C and C++ namespaces. James