Dear all,
The library i sent yesterday, it can't work in wince,although the compiler
doesn't make
error.Cos today i tried to rework an example which i run successful in
visual studio 7.1,
i failed.
Today, i tried so much to solve a lots of problems about warnings.
Until now, i met a big problem. Cos wince doesn't support getenv().
You can find getenv in fonction init_by_environment(ares_channel channel) in
the end.
The error when i tested like this:
aresWince.lib(ares_init.obj) : error LNK2019: unresolved external symbol
_getenv referenced in function _init_by_environment
aresWince.lib(ares_search.obj) : error LNK2019: unresolved external symbol
_getenv referenced in function _single_domain
How can i pass this ? If i don't use getenv(), what will come?
Need your comment?
To author of c-ares: because embedded visual C++ 4.0 isnot strong enought
so at first i will try to make c-ares run in wince, after that i will make a
patch file.
Don't care a lots about this problem.
static int init_by_environment(ares_channel channel)
{
const char *localdomain, *res_options;
int status;
//Jlocaldomain = getenv("LOCALDOMAIN");
localdomain = getenv("LOCALDOMAIN");
if (localdomain && channel->ndomains == -1)
{
status = set_search(channel, localdomain);
if (status != ARES_SUCCESS)
return status;
}
res_options = (char *) getenv("RES_OPTIONS");
if (res_options)
{
status = set_options(channel, res_options);
if (status != ARES_SUCCESS)
return status;
}
return ARES_SUCCESS;
}
_______________________________________________
http://cool.haxx.se/mailman/listinfo/c-ares
Received on Wed Apr 27 20:49:40 2005