Building ares library for Win CE

136 Views Asked by At

I am trying to build c-ares library for Win CE as a part of porting node js to windows CE.

I have run into some blockers in the process.

While compiling ares_platform.c file I get the error:

Error   158 error C2065: 'OSVERSIONINFOEX' : undeclared identifier  C:\Users\syedalim\Desktop\cares\src\ares_platform.c 39  1   cares

OSVERSIONINFOEX is included as a part of header files. Still getting this error.

I understand that some of the APIs may not be supported for Windows CE, but we are planning to implement our custom code if the native cares library can't be ported to CE.

So I commented out the lines Where it checks for OSVERSIONINFOEX and then I get,

Error   150 error LNK1181: cannot open input file 'ws2_32.lib'  C:\Users\syedalim\Desktop\cares\LINK    cares

Does c-ares need some depedencies? What does this ws2_32 lib mean?

Has some one compiled cares library for Win CE ? If some ppl can point me to correct resources, that would be great. Thanks in advance.

1

There are 1 best solutions below

2
Carsten Hansen On

ws2_32.lib is the (desktop) Windows sockets implementation used for network communication.

On Windows CE this library is called ws2.lib, so you'll need to update the linker reference in your project.