3 ms·
Library issue was my understanding - the Half-Life mod Natural Selection used the STL heavily and was built for both Windows and Linux (Linux for dedicated serv
by jamesfinlayson 3y ago
Library issue was my understanding - the Half-Life mod Natural Selection used the STL heavily and was built for both Windows and Linux (Linux for dedicated servers).
When the source code was released many years later the documentation said it needed a library called stlport - some third-party implementation of the STL because even in 2002 when Natural Selection was released, different compilers apparently shipped STLs of varying quality.
- zabzonk 3y agoi don't know about the half life stuff. stlport was (is?) a portable implemrntation of the Standard Template Library. this is far from the same as the C++ Standard Library.
- jamesfinlayson 3y agoIt was only used by one of the bigger Half-Life mods (nothing first party - Half-Life's game code is very much C with classes). Possibly other mods used it but I suspect that most Half-Life mods kept to the style of the original.
- cmrdporcupine 3y agoSTLport was the open sourcing of SGI's STL implementation, and its existence I think kinda predated the completion of a full STL shipped with either MSVC or GCC. It got used back then because of, yeah, varying quality between compilers but also varying consistency. If you wanted something that could compile on both G++ and MSVC7 or earlier you were probably going to reach for stuff like that, or have a pile of #ifdefs and pain. C++ is a far nicer language to work with these days. Back then everyone rolled their own string etc. library, too. Sucked.
- jamesfinlayson 3y agoAh okay - I think when I went looking for STLport at the time all I could find was an old mirror on SourceForge. But yeah that sounds about right.