Jump to content
  • Advertisement
Sign in to follow this  
jvsstudios

Alternative STL

This topic is 4857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am in the middle of creating a game engine and I would like to make it cross-platform. Is it advisable to use a 3rd-party STL package such as Boost or do something completely different? I would like to use Code Blocks for my IDE and get away from MSVS.

Share this post


Link to post
Share on other sites
Advertisement
now you're clearly delusional... STL (or SC++L) is part of the language you don't need a third party version although such are available STLPort is one.

Boost is more of an extension repository but it could be well worth checking out since it has a lot of nifty features and things that are making it into the standard but aren't in it yet.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Most C++ compilers will have their own implementation of the STL. Indeed, the STL describes a standard and not a particular implementation. You should find that the STL distribution that comes with GCC (since you're not using MSVC) will be perfectly fine. If it's not, you could try looking at STLPort (http://www.stlport.org/).

Share this post


Link to post
Share on other sites
- STL refers to a part of the Standard C++ Library (SC++L)
- There is only one STL, but there are various implementations of it. Each compiler has its own, and there are some additional implementations that are not shipped with compilers.
- Not all C++ compilers support the SC++L, although all standard-compliant ones do.
- Boost is portable to Windows and Unix/Linux platforms by essence (you won't have to do anything for it to work).
- Boost, the STL, and some C++ features, are not available on all platforms (Symbian OS, Windows CE, some embedded OSes, OSes with prestandard compilers).

My advice: if you're going for the PC world only, use Boost. Otherwise, don't, and be very wary of what subset of C++ is supported.

Share this post


Link to post
Share on other sites
Thanks guys for the quick response. I guess I should have worded the question differently. I did know that STL ( or SC++L) was the standard library with C++. What I was trying to say is that I really wanted to get away from MSVC's version of the STL and use something else. I have downloaded both STLPort and Boost and will begin evaluating which one will suit my needs.

Share this post


Link to post
Share on other sites
It has been said before: Boost is not an STL implementation. It "only" contains extensions to the Standard C++ library. You will still need a STL to use boost. So you can't choose between STLPort and Boost.

Share this post


Link to post
Share on other sites
If you have the vc++ 7.1 you can use his standard c++ library implementation because it's one of the best out there.
STLPort is often used with compilers that don't ship a good implementation (I think boost requires it for the vc++ 6).
But with STLPort and Boost you can't do something wrong :)

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!