This content has been marked as final. Show 1 reply
The macro STLPUSE_MALLOC is a configuration macro that can be used when STLport is initially built, by enabling the definition in the STLport configuration file. This and other configuration macros cannot be modified with the STLport as supplied with Studio. You would have conflicting definitions of various classes and functions in the runtime library compared with user code.
We looked into various ways of changing the default allocator behavior, but could not find a way that would retain binary compatibility. We would either have to provide two versions of STLport with the compiler, or break binary compatibility. We do not consider either of these to be viable solutions, since another option is already available.
If you are running on Solaris 10u10 or 11, I recommend instead that you use the Apache stdcxx library. To use this library instead of STLport, replace the library=stlport4 option with -library=stdcxx4.
You will of course have to recompile all the C++ code.