www.digitalmars.com         C & C++   DMDScript  

c++ - STL vs. STLport (And <string>)

reply "Kevin Albrecht" <kevin albrecht.net> writes:
I am trying to figureout the differences between the already
included STL and STLport.  Is STLport more standards
compliant? faster?

Also, how do I use the Standard C++ string library?  If I
use <string.h>, I get the C library, If I use <string>, I
get an error.

Thanks,
Kevin
Feb 22 2004
parent reply "Walter" <walter digitalmars.com> writes:
"Kevin Albrecht" <kevin albrecht.net> wrote in message
news:c1bmj0$29bk$1 digitaldaemon.com...
 I am trying to figureout the differences between the already
 included STL and STLport.  Is STLport more standards
 compliant? faster?
Use STLport, as the other is no longer supported.
 Also, how do I use the Standard C++ string library?  If I
 use <string.h>, I get the C library, If I use <string>, I
 get an error.
Compile with: -I\dm\stlport\stlport
Feb 22 2004
parent reply "Will Dean" <will nospam.demon.co.uk> writes:
"Walter" <walter digitalmars.com> wrote in message
news:c1c4kg$31a4$1 digitaldaemon.com...
 Use STLport, as the other is no longer supported.
Am I right in thinking that STLport doesn't work with dos-extended applications? (Because of its unquenchable desire for the presence of various Unicode functions) If so, is there now no 'official' route for using and STL library in 32-bit DOS applications? Thanks, Will
Feb 23 2004
parent reply "Walter" <walter digitalmars.com> writes:
"Will Dean" <will nospam.demon.co.uk> wrote in message
news:c1cg9d$ks7$1 digitaldaemon.com...
 "Walter" <walter digitalmars.com> wrote in message
 news:c1c4kg$31a4$1 digitaldaemon.com...
 Use STLport, as the other is no longer supported.
Am I right in thinking that STLport doesn't work with dos-extended applications? (Because of its unquenchable desire for the presence of various Unicode functions)
Yes. DOS, unfortunately, doesn't do unicode.
 If so, is there now no 'official' route for using and STL library in
32-bit
 DOS applications?
You can still use STL on that.
Feb 23 2004
parent "Will Dean" <will nospam.demon.co.uk> writes:
"Walter" <walter digitalmars.com> wrote in message
news:c1dgje$2el7$1 digitaldaemon.com...
 Yes. DOS, unfortunately, doesn't do unicode.
Sure. And I don't want to either! (In this app...) It's a pity that STLport creates this artificial dependency. (Not your fault, I know)
 You can still use STL on that.
Thanks. Cheers, Will
Feb 24 2004