PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Lack of standrard libraries for eVC

Good day to everyone!

I'm trying to write ICQ/AIM client for Pocket PC.
I decided to use ICQKID2 library to deal with OSCAR protocol (which ICQ and AIM use). It could be found on sf.net.
But i found out, that some it's dependencies are absent in eVC: there are no timeb.h and sstream.

I have written timeb.h by myself... but sstream is much larger... I found sstream.h in wxWidgets' distributive (i develop interface part by wxMSW), but it seems to be wrong sstream.h. There are lot of compile errors when using it.

Also, sstream is avaible in cygwin, Dev-Cpp and Borland C++ Builder distributives. So i can assume it is standard library.

I would be very much obliged to everyone who can advise me what to do in that situation.
Such is life. WindowsCE is a subset to desktop Windows.

Anyway, is this the file you need: http://www.lyx.org/sourcedoc/sstream_8h-source.html

You will most likley have to write a few functions yourself.
Shedal wrote:
But i found out, that some it's dependencies are absent in eVC: there are no timeb.h and sstream.


You could to use GCC for WinCE instead of eVC. Also there are a package called 'Mamaich GCC' for Cygwin that makes faster executables than eVC.

Regards
Really thanks, but there is no sstream in mamaich's arm-wince-pe port of gcc.
Maybe http://www.lyx.org/sourcedoc/sstream_8h-source.html would be helpful...


I just found STL port (sourceforge.net/projects/stlport), there IS sstream, but.. There are also a lot of compile errors when using that STLport :(
For example, at line
Code:
_STLP_FORCE_ALLOCATORS(_Tp, _Alloc)
there's error:
Code:
error C2143: syntax error : missing ';' before 'public'

So I can assume eVC doesn't find that macro declaration :(

That's my problem :) and i can't find out what to do with it
What I've read about getting STL to work with eVC was to include the following
Code:

#define __STL_NO_IOSTREAMS 1
#define _STLP_NO_NEW_IOSTREAMS 1


Which is probably disabling what you need...
Doesn't help :(
Use SGI's STLPort (www.stlport.org).
I use the STLport-4.5.3 version with changes fast_rx provided above.
BIGBEN, do you mean that version 4.5.3 works better with sstream?
I ask because I wrote earlier that
There are also a lot of compile errors when using that STLport


I tried to use the last version - 5.0.2
Ok, I withdraw the question :-) Problem solved