Hello,
Wednesday, December 6, 2006, 2:32:38 PM, you wrote:
|
> |
I notice that we can define SIPXTAPI_STATIC to compile sipXtapi as a static-library. So I created a new project and try to compile it, and I successed. |
I use the same technique (created a new project sipXtapiLib). I was disable DllMain() in the sipXtapi.cpp
(wrapped with the SIPXTAPI_STATIC directive). Also was added _LIB and extern "C" directives in the sipXtapi.h.
# ifdef _LIB
# define SIPXTAPI_API extern "C"
# else
The SIPX_USE_STDCALL directive is used for __stdcall calling convention. That's all and that is work in my case
(console and net framework).
|
> |
Could anyone tell some information about this? Or guide me how to compile sipXtapi as a static library correctly, and use it correctly. |
--
Best regards,
_______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
