Re: [Fwd: Re: Using gupnp in C++ Code]



Hi Jens,
Thans for the input. It works fine.
 
Regards,
Kirrthana

On Wed, Jul 17, 2013 at 3:20 PM, Jens Georg <mail jensge org> wrote:
-------- Forwarded Message --------
From: Jens Georg <mail jensge org>
To: gupnp-list gnome org
Subject: Re: Using gupnp in C++ Code
Date: Wed, 17 Jul 2013 11:49:51 +0200

On Mi, 2013-07-17 at 14:48 +0530, kirr official wrote:
> Hi All,
>
> I'm new to gupnp and I'm trying to develop a simple MediaServer using
> gupnp. My code base is developed using C++, I found some issues with
> auto connecting the service and actions. Can i use gupnp API's in C++
> code?
> Please advice me the same

For autoconnecting to work in C++ code, you need to wrap the functions
you want to connect to in extern "C" { } to prevent C++ name mangling.
Otherwise the autoconnect code cannot find the functions.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]