< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index | Next in Thread > |
_CRTIMP
char * __cdecl strdup(const char *); So i think to pass the error, it should to replace _strdup for strdup.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@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel