Thanks Dale. It works and I could build sipXportLib in VC++ 2005. We no
longer attempt to cast from const char * to char * at least in port lib.

-Subrata
Rebaca Technologies, India.

On 12/9/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.

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++?

Thanks,

Dale



_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/



_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/

Reply via email to