< Previous by Date | Date Index | Next by Date > |
< Previous in Thread | Thread Index |
About the getenv () for wince.
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@xxxxxxxxxxxxxx < kenho@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxxxxx
> https://list.sipfoundry.org/mailman/listinfo/resiprocate-devel