It is not clear from your posts, but if you are trying to port code with Linux/GNU/POSIX/etc. roots, you should use the OpenC/C++ subsystem. The include folder epoc32\include\stdapis (and _not_ libc, which is the obsolete POSIX-like subsystem), and libc.lib, libstdcpp.lib, etc. (and _not_ estlib.lib).
In the Belle SDK it is pretty much integrated, and unfortunately the documentation and the examples do not seem to be there. For older SDK-s it is a plugin, available from
https://www.developer.nokia.com/Deve...ian_C++/Tools/, you may want to download it and try to install it separately (perhaps it is possible without installing a complete SDK for it), then you will have the documentation and the examples.