Thanks for your help! It works well.
And I find it’s OK when I didn’t define SIPX_USE_STDCALL. I don’t know why, but I will remember this. _____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 2006年12月6日 23:30 To: ??? Cc: [email protected] Subject: Re: [sipxtapi-dev] compile sipXtapi as a static-library 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, sipx <mailto:[EMAIL PROTECTED]> mailto:[EMAIL PROTECTED]
_______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
