Building pjsua as DLL

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

 



Thanks for testing it, Vali. I've committed the change in SVN.

cheers,
  -benny

Tom?s Valenta wrote:
> Thank you, it does work! And it is smart. I could not find this because
> Intellisense keep telling me that the source is C++ (__cplusplus defined;
> I was playing only with this branch of macros) but it is compiled as ANSI C.
> Strange.
> Cheers
>     Vali
> 
> 
> ----- Original Message ----- 
> From: "Benny Prijono" <bennylp@xxxxxxxxx>
> To: "pjsip embedded/DSP SIP discussion" <pjsip at lists.pjsip.org>
> Sent: Wednesday, November 14, 2007 4:45 AM
> Subject: Re: Building pjsua as DLL
> 
> 
> Thanks for the info. Can I ask for a favor to try out these patch?
> 
> What if instead of commenting out PJ_EXPORT_DEF_SPECIFIER, we change
> the PJ_DECL_NO_RETURN declaration in pj/config.h to something like this:
> 
> #ifdef __cplusplus
> #  define PJ_DECL_NO_RETURN(type)   PJ_DECL(type) PJ_NORETURN
> #else
> #  define PJ_DECL_NO_RETURN(type)   PJ_NORETURN PJ_DECL(type)
> #endif
> 
> Does this work for your DLL?
> 
> If it does, I would prefer this approach since the empty
> PJ_EXPORT_DEF_SPECIFIER may not work for other platforms (such as
> Symbian, which IIRC expects the export specification in the
> definition rather than in declaration).
> 
> cheers,
>   -benny





[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux