PocketMatrix forums

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

STLport 4.x and eVC++ 4

I realize this is a bit off the topic of GapiDraw, and I apoligize to those who might get irritated- but this forum has the kind of developers who could answer this question...

Has anyone succesfully used STLport 4.x and Embedded Visual C++ 4? I am using it in the XP Project, but can't seem to get things working in eVC4.

There are a number of reasons I want to use it over the standard STL- one of the biggest is its debugging support and its ability to suppress all of those warnings.

If you know the answer, I'd appreciate your help.

Byron
Pejo Software - Per · 02 Nov 2004, 21:31 UTC
I have it working and I had to do some small patches.
I am not sure I remember all I did but here we go!

In stl_user_config.h, add:
Code:
#define __STL_NO_IOSTREAMS 1
#define _STLP_NO_NEW_IOSTREAMS 1


In stl_msvc.h:
Code:
# ifdef _M_IA64
# define _STLP_NATIVE_HEADER(x) <../crt/##x>
# define _STLP_NATIVE_C_HEADER(x) <../crt/##x>
# define _STLP_NATIVE_CPP_C_HEADER(x) <../crt/##x>
# define _STLP_NATIVE_OLD_STREAMS_HEADER(x) <../crt/##x>
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../crt/##header>
# define _STLP_GLOBAL_NEW_HANDLER
# else
# ifdef ARMV4
# define _STLP_NATIVE_HEADER(x) <../include/armv4/##x>
# define _STLP_NATIVE_C_HEADER(x) <../include/armv4/##x>
# define _STLP_NATIVE_CPP_C_HEADER(x) <../include/armv4/##x>
# define _STLP_NATIVE_OLD_STREAMS_HEADER(x) <../include/armv4/##x>
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/armv4/##header>
# else
# define _STLP_NATIVE_HEADER(x) <../include/##x>
# define _STLP_NATIVE_C_HEADER(x) <../include/##x>
# define _STLP_NATIVE_CPP_C_HEADER(x) <../include/##x>
# define _STLP_NATIVE_OLD_STREAMS_HEADER(x) <../include/##x>
# define _STLP_NATIVE_CPP_RUNTIME_HEADER(header) <../include/##header>
# endif
# endif


Personally I use my own STL implementation nowdays since I could not get STLPort to work on Symbian.

And last, yes I agree that this maybe should have been in the general developer forum where even more developers post.
Using STLport with EVC was discussed multiple times on the PocketFrog/PocketHAL forum.