I need to know which library to link, in order to use the select() function.
Long story, for those interested
Since I've failed to implement timeout using Nokia's Web Service package, I've tried to use gSoap.
The problem now is that SOAP implements timeout using Berkeley socket functions, and specifically the function select(), which on UNIX is defined in sys/select.h. All the related code is #deffed out in the gSoap generated code in case of Symbian. I've #deffed it in, and now I'm looking for ways to make it work.
This is what I've found so far:
- sys\select.h exists under epoc32\include\stdapis, but not under epoc32\include\libc.
- libc is the one that SOAP documentation says we need to use on Symbian.
- When I try to use stdapis instead of libc it compiles fine, but then I get linkage errors for the following symbols: atol, __inet_addr, select.
- When I try to use only libc and add a manual forward declaration of select(), I get a linkage error.
Anybody knows which library I should link with to get select()? Would it cause me some linkage ambiguity, similar to the compilation collisions I had?