Hello, On 12/8/06, Dale R. Worley <[EMAIL PROTECTED]> wrote: > On Fri, 2006-12-08 at 19:23 +0530, Kite Flyer wrote: > > The error occurs because above strchr call doesn't match either of the > > following VC++ declarations in string.h. > > > > const char *strchr(const char *, int) > > char *strchr(char *, int) > > Interesting -- gcc doesn't flag that as a problem, because the argument > of strchr is declared (const char *), but the result is declared (char > *). Presumably so that strchr has only one declaration, in the C > manner. This is a Microsoft specific feature.. They also marked strcpy, sprintf and other error prone functions as deprecated: http://msdn2.microsoft.com/en-us/library/ms235384(VS.80).aspx
> I've attached a patch which ought to work, and gcc accepts it. Can you > apply it to your code and tell us if it is acceptd by VC++? It should help. This patch in sipXtapi branch: http://scm.sipfoundry.org/viewsvn/sipX?view=rev&rev=7236 -- Regards, Alexander Chemeris. _______________________________________________ sipxtapi-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/
