Hi,
While building sipXcallLib\sipXtapi.sln from 3.6 branch using VC++ 2005 on
Windows XP with SP2, I'm getting this error:
d:\sip\sipfoundry\sipx\src\3.6\sipxportlib\src\os\ossocket.cpp(1136) : error
C2440: 'initializing' : cannot convert from 'const char *' to 'char *'
in the strchr usage below:
UtlBoolean OsSocket::isIp4Address(const char* address)
{
// nnn.nn.n.nnn
// ^==== dot3
// ^====== dot2
// ^========= dot1
char* dot1 = strchr(address, '.');
---
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)
Before I change the call to match one of the above, just wanted to know how
others are managing to get rid of this and why the piece of code in
3.6branch is different from the same line in sipXtapi branch.
I could build 3.6 on Linux. IAre stable release branches like 3.6 not
supported on Windows?
Thanks in advance,
Subrata
Rebaca Technologies
_______________________________________________
sipxtapi-dev mailing list
[email protected]
List Archive: http://list.sipfoundry.org/archive/sipxtapi-dev/