< Previous by Date Date Index Next by Date >
  Thread Index  

[reSIProcate] Windns.h cos port to wince


Dear all,
 
I replaced keyword try to itry ( like Wang did ) cos compiler of embedded visual C++
doesnot look support C. Then, i compiled, everything good, but the compiler didn't
find Windns.h and made some warning ( you can see in the end of this email or
in the log file )
If i removed the Windns.h, no error but when i tested, i met a lots of error.
Do you have some idea in this problem?
very appreciated your idea.
 
Julien
 
 
D:\PortWinCE\contrib\ares\ares_gethostbyname.c(93) : warning C4013: 'strdup' undefined; assuming extern returning int
D:\PortWinCE\contrib\ares\ares_gethostbyname.c(93) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int '
D:\PortWinCE\contrib\ares\ares_gethostbyname.c(202) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int '
D:\PortWinCE\contrib\ares\ares_gethostbyname.c(238) : warning C4013: 'stricmp' undefined; assuming extern returning int
ares_init.c
D:\PortWinCE\contrib\ares\ares_init.c(40) : fatal error C1083: Cannot open include file: 'Windns.h': No such file or directory
ares_local.c
ares_mkquery.c
ares_parse_a_reply.c
D:\PortWinCE\contrib\ares\ares_parse_a_reply.c(107) : warning C4013: 'stricmp' undefined; assuming extern returning int
ares_parse_ptr_reply.c
D:\PortWinCE\contrib\ares\ares_parse_ptr_reply.c(89) : warning C4013: 'stricmp' undefined; assuming extern returning int
ares_process.c
D:\PortWinCE\contrib\ares\ares_process.c(294) : warning C4018: '==' : signed/unsigned mismatch
D:\PortWinCE\contrib\ares\ares_process.c(746) : warning C4013: 'stricmp' undefined; assuming extern returning int
ares_query.c
ares_search.c
D:\PortWinCE\contrib\ares\ares_search.c(79) : warning C4013: 'strdup' undefined; assuming extern returning int
D:\PortWinCE\contrib\ares\ares_search.c(79) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int '
D:\PortWinCE\contrib\ares\ares_search.c(212) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int '
D:\PortWinCE\contrib\ares\ares_search.c(219) : warning C4013: 'getenv' undefined; assuming extern returning int
D:\PortWinCE\contrib\ares\ares_search.c(219) : warning C4047: '=' : 'const char *' differs in levels of indirection from 'int '
D:\PortWinCE\contrib\ares\ares_search.c(228) : warning C4013: 'strnicmp' undefined; assuming extern returning int
D:\PortWinCE\contrib\ares\ares_search.c(261) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int '
 

Build Log

--------------------Configuration: aresWince - Win32 (WCE emulator) Debug--------------------

Command Lines

Creating temporary file "D:\DOCUME~1\LDCG04~2\LOCALS~1\Temp\RSP335.tmp" with contents [ /nologo /W3 /Zi /Od /D "DEBUG" /D _WIN32_WCE=400 /D "WCE_PLATFORM_STANDARDSDK" /D "_i386_" /D UNDER_CE=400 /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /D "_LIB" /FR"emulatorDbg/" /Fo"emulatorDbg/" /Fd"emulatorDbg/" /Gs8192 /GF /c /Tc "D:\PortWinCE\contrib\ares\ares__close_sockets.c" /Tc "D:\PortWinCE\contrib\ares\ares__get_hostent.c" /Tc "D:\PortWinCE\contrib\ares\ares__read_line.c" /Tc "D:\PortWinCE\contrib\ares\ares_destroy.c" /Tc "D:\PortWinCE\contrib\ares\ares_expand_name.c" /Tc "D:\PortWinCE\contrib\ares\ares_fds.c" /Tc "D:\PortWinCE\contrib\ares\ares_free_errmem.c" /Tc "D:\PortWinCE\contrib\ares\ares_free_hostent.c" /Tc "D:\PortWinCE\contrib\ares\ares_free_string.c" /Tc "D:\PortWinCE\contrib\ares\ares_gethostbyaddr.c" /Tc "D:\PortWinCE\contrib\ares\ares_gethostbyname.c" /Tc "D:\PortWinCE\contrib\ares\ares_init.c" /Tc "D:\PortWinCE\contrib\ares\ares_local.c" /Tc "D:\PortWinCE\contrib\ares\ares_mkquery.c" /Tc "D:\PortWinCE\contrib\ares\ares_parse_a_reply.c" /Tc "D:\PortWinCE\contrib\ares\ares_parse_ptr_reply.c" /Tc "D:\PortWinCE\contrib\ares\ares_process.c" /Tc "D:\PortWinCE\contrib\ares\ares_query.c" /Tc "D:\PortWinCE\contrib\ares\ares_search.c" /Tc "D:\PortWinCE\contrib\ares\ares_send.c" /Tc "D:\PortWinCE\contrib\ares\ares_strerror.c" /Tc "D:\PortWinCE\contrib\ares\ares_timeout.c" ] Creating command line "cl.exe @D:\DOCUME~1\LDCG04~2\LOCALS~1\Temp\RSP335.tmp" Creating temporary file "D:\DOCUME~1\LDCG04~2\LOCALS~1\Temp\RSP336.tmp" with contents [ /nologo /out:"emulatorDbg\aresWince.lib" .\emulatorDbg\ares__close_sockets.obj .\emulatorDbg\ares__get_hostent.obj .\emulatorDbg\ares__read_line.obj .\emulatorDbg\ares_destroy.obj .\emulatorDbg\ares_expand_name.obj .\emulatorDbg\ares_fds.obj .\emulatorDbg\ares_free_errmem.obj .\emulatorDbg\ares_free_hostent.obj .\emulatorDbg\ares_free_string.obj .\emulatorDbg\ares_gethostbyaddr.obj .\emulatorDbg\ares_gethostbyname.obj .\emulatorDbg\ares_init.obj .\emulatorDbg\ares_local.obj .\emulatorDbg\ares_mkquery.obj .\emulatorDbg\ares_parse_a_reply.obj .\emulatorDbg\ares_parse_ptr_reply.obj .\emulatorDbg\ares_process.obj .\emulatorDbg\ares_query.obj .\emulatorDbg\ares_search.obj .\emulatorDbg\ares_send.obj .\emulatorDbg\ares_strerror.obj .\emulatorDbg\ares_timeout.obj ] Creating command line "link.exe -lib @D:\DOCUME~1\LDCG04~2\LOCALS~1\Temp\RSP336.tmp"

Output Window

Compiling... ares__close_sockets.c ares__get_hostent.c D:\PortWinCE\contrib\ares\ares__get_hostent.c(97) : warning C4013: 'strdup' undefined; assuming extern returning int D:\PortWinCE\contrib\ares\ares__get_hostent.c(97) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int ' ares__read_line.c ares_destroy.c ares_expand_name.c ares_fds.c D:\PortWinCE\contrib\ares\ares_fds.c(37) : warning C4018: '==' : signed/unsigned mismatch D:\PortWinCE\contrib\ares\ares_fds.c(43) : warning C4018: '==' : signed/unsigned mismatch D:\PortWinCE\contrib\ares\ares_fds.c(45) : warning C4018: '==' : signed/unsigned mismatch ares_free_errmem.c ares_free_hostent.c ares_free_string.c ares_gethostbyaddr.c ares_gethostbyname.c D:\PortWinCE\contrib\ares\ares_gethostbyname.c(93) : warning C4013: 'strdup' undefined; assuming extern returning int D:\PortWinCE\contrib\ares\ares_gethostbyname.c(93) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int ' D:\PortWinCE\contrib\ares\ares_gethostbyname.c(202) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int ' D:\PortWinCE\contrib\ares\ares_gethostbyname.c(238) : warning C4013: 'stricmp' undefined; assuming extern returning int ares_init.c D:\PortWinCE\contrib\ares\ares_init.c(40) : fatal error C1083: Cannot open include file: 'Windns.h': No such file or directory ares_local.c ares_mkquery.c ares_parse_a_reply.c D:\PortWinCE\contrib\ares\ares_parse_a_reply.c(107) : warning C4013: 'stricmp' undefined; assuming extern returning int ares_parse_ptr_reply.c D:\PortWinCE\contrib\ares\ares_parse_ptr_reply.c(89) : warning C4013: 'stricmp' undefined; assuming extern returning int ares_process.c D:\PortWinCE\contrib\ares\ares_process.c(294) : warning C4018: '==' : signed/unsigned mismatch D:\PortWinCE\contrib\ares\ares_process.c(746) : warning C4013: 'stricmp' undefined; assuming extern returning int ares_query.c ares_search.c D:\PortWinCE\contrib\ares\ares_search.c(79) : warning C4013: 'strdup' undefined; assuming extern returning int D:\PortWinCE\contrib\ares\ares_search.c(79) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int ' D:\PortWinCE\contrib\ares\ares_search.c(212) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int ' D:\PortWinCE\contrib\ares\ares_search.c(219) : warning C4013: 'getenv' undefined; assuming extern returning int D:\PortWinCE\contrib\ares\ares_search.c(219) : warning C4047: '=' : 'const char *' differs in levels of indirection from 'int ' D:\PortWinCE\contrib\ares\ares_search.c(228) : warning C4013: 'strnicmp' undefined; assuming extern returning int D:\PortWinCE\contrib\ares\ares_search.c(261) : warning C4047: '=' : 'char *' differs in levels of indirection from 'int ' ares_send.c Generating Code... Compiling... ares_strerror.c ares_timeout.c Generating Code... Error executing cl.exe. Creating temporary file "D:\DOCUME~1\LDCG04~2\LOCALS~1\Temp\RSP337.tmp" with contents [ /nologo /o"emulatorDbg/aresWince.bsc" .\emulatorDbg\ares__close_sockets.sbr .\emulatorDbg\ares__get_hostent.sbr .\emulatorDbg\ares__read_line.sbr .\emulatorDbg\ares_destroy.sbr .\emulatorDbg\ares_expand_name.sbr .\emulatorDbg\ares_fds.sbr .\emulatorDbg\ares_free_errmem.sbr .\emulatorDbg\ares_free_hostent.sbr .\emulatorDbg\ares_free_string.sbr .\emulatorDbg\ares_gethostbyaddr.sbr .\emulatorDbg\ares_gethostbyname.sbr .\emulatorDbg\ares_init.sbr .\emulatorDbg\ares_local.sbr .\emulatorDbg\ares_mkquery.sbr .\emulatorDbg\ares_parse_a_reply.sbr .\emulatorDbg\ares_parse_ptr_reply.sbr .\emulatorDbg\ares_process.sbr .\emulatorDbg\ares_query.sbr .\emulatorDbg\ares_search.sbr .\emulatorDbg\ares_send.sbr .\emulatorDbg\ares_strerror.sbr .\emulatorDbg\ares_timeout.sbr] Creating command line "bscmake.exe @D:\DOCUME~1\LDCG04~2\LOCALS~1\Temp\RSP337.tmp" Creating browse info file... BSCMAKE: error BK1506 : cannot open file '.\emulatorDbg\ares_init.sbr': No such file or directory Error executing bscmake.exe.

Output Window

Results

aresWince.lib - 2 error(s), 20 warning(s)