[reSIProcate] without windns.h,warings in wince
julien thai
julienresiprocate at gmail.com
Tue Apr 26 07:44:06 CDT 2005
In SDK include of wince 4.0, i found in string.h the prototype of _strdup
like this:
_CRTIMP char * __cdecl _strdup(const char *);
and in the Visual C++ 7.1, in string.h i found the prototype of strdup
like:
_CRTIMP char * __cdecl strdup(const char *);
So i think to pass the error, it should to replace _strdup for strdup.
What do you think?
Julien
On 4/26/05, kenho at bluebottle.com <kenho at bluebottle.com> wrote:
>
> It seems my working copy is different from yours, I failed to find the
> lines responsible for the assignment warnings.
> Anyhow, it seems you need to include these headers:
> #include <string.h> // for strdup()
> #include <stdlib.h> // for getenv()
>
> Ken
>
> julien thai wrote:
> > Dear All,
> >
> > Like in previous email, i remove the line #included <windns.h>,
> > i met the warnings like below. It looks like i have to find a other
> > strdup in wince to replace.
> >
> > ........................
> >
> > D:\PortWinCE\contrib\ares\ares_init.c(240) : warning C4013: 'strdup'
> > undefined; assuming extern returning int
> > D:\PortWinCE\contrib\ares\ares_init.c(240) : warning C4047: '=' : 'char
> > *' differs in levels of indirection from 'int '
> > D:\PortWinCE\contrib\ares\ares_init.c(250) : warning C4047: '=' : 'char
> > *' differs in levels of indirection from 'int '
> > D:\PortWinCE\contrib\ares\ares_init.c(263) : warning C4013: 'getenv'
> > undefined; assuming extern returning int
> > D:\PortWinCE\contrib\ares\ares_init.c(263) : warning C4047: '=' : 'const
> > char *' differs in levels of indirection from 'int '
> > D:\PortWinCE\contrib\ares\ares_init.c(271) : warning C4047: '=' : 'const
> > char *' differs in levels of indirection from 'int '
> > D:\PortWinCE\contrib\ares\ares_init.c(484) : warning C4047: '=' : 'char
> > *' differs in levels of indirection from 'int '
> > D:\PortWinCE\contrib\ares\ares_init.c(499) : warning C4047: '=' : 'char
> > *' differs in levels of indirection from 'int '
> > D:\PortWinCE\contrib\ares\ares_init.c(540) : warning C4047: '=' : 'char
> > *' differs in levels of indirection from 'int '
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > resiprocate-devel mailing list
> > resiprocate-devel at list.sipfoundry.org
> > https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.resiprocate.org/pipermail/resiprocate-devel/attachments/20050426/b3d09614/attachment.htm>
More information about the resiprocate-devel
mailing list