Questions tagged [stlport]

STLport is a free, open-source, multiplatform C++ Standard Library implementation.

STLport is a free, open-source, multiplatform C++ Standard Library implementation. http://stlport.sourceforge.net/Home.shtml

50 questions
58
votes
4 answers

How to use the boost library (including shared_ptr) with the Android NDK and STLport

This is more of an answer than a question, because I've figured it out, at least as far as cleanly compiling the library. The main issue for me was to get shared_ptr working. Ingredients: Boost v. 1.45.0 The version of STLport at…
Gamma Draconis
  • 1,166
  • 1
  • 9
  • 11
25
votes
3 answers

Getting error: 'shared_ptr' in namespace 'std' does not name a type

I am trying to compile an android application in android studio (ndk r10d) which uses some C++ code. I needed C++11 so I added -std=gnu++11 (I need gnu++11 instead of c++11 for an extension I am using). I am using the stlport stl, due to other…
royeet
  • 829
  • 1
  • 9
  • 12
22
votes
2 answers

How to use std::allocator in my own container class

I am trying to write a container class which uses STL allocators. What I currently do is to have a private member std::allocator alloc_; (this will later be templated so that the user can pick a different allocator) and then call T* ptr =…
Kasper Peeters
  • 1,580
  • 2
  • 18
  • 37
14
votes
2 answers

Open source STL implementations with C++11 support

In short, I'm looking for alternatives to STLPort. STLPort hasn't had an update for some time (since 2008?) and is lacking C++11 support. Does anyone know of any alternatives? I need to compile using various toolchains, for various architectures…
Andrew Parker
  • 1,425
  • 2
  • 20
  • 28
7
votes
2 answers

Unable to build Boost with STLport library

I'm building boost 1.48.0 with STLport 5.2.1 on Windows using MSVC 7.1 and here is the command line I run: b2 toolset=msvc link=shared threading=multi runtime-link=shared variant=debug stdlib=stlport --layout=tagged stage My user-config.jam is…
void.pointer
  • 24,859
  • 31
  • 132
  • 243
5
votes
3 answers

Solution for missing std::wstring support in Android NDK?

I have a game which uses std::wstring as its basic string type in thousand of places as well as doing operations with wchar_t and its functions: wcsicmp() wcslen() vsprintf(), etc. The problem is wstring is not supported in R5c (latest ndk at the…
user548569
  • 158
  • 2
  • 6
5
votes
3 answers

std::string insert method has ambiguous overloads?

Environment: VS2005 C++ using STLPort 5.1.4. Compiling the following code snippet: std::string copied = "asdf"; char ch = 's'; copied.insert(0,1,ch); I receive an error: Error 1 error C2668:…
sdg
  • 4,645
  • 3
  • 32
  • 26
4
votes
1 answer

Android NDK doesn't support std::locale()?

I use std::local() to MBS to WCS in Android…
3
votes
3 answers

How to use STLPort in my kernel?

I am developing a kernel in C++. But I do not want to write a stdlib; for that purpose I have downloaded STLport http://www.stlport.org/, but I don't know how to install and use it. I am using Linux for building my kernel. How can I use c++ standard…
user636424
3
votes
2 answers

Has anyone already done the work to make STLPort build with VS2008 and/or an x64 build with VS2005?

At present it seems that VS2008 still isn't supported either in the 5.1.5 release or in the STLPort CVS repository. If someone has already done this work then it would be useful to share, if possible :) Likewise it would be useful to know about the…
Len Holgate
  • 21,282
  • 4
  • 45
  • 92
2
votes
1 answer

Is STLPort's string implementation using reference counting?

Is STLPort implemented string via reference counting mechanism?
Davit Siradeghyan
  • 6,053
  • 6
  • 24
  • 29
2
votes
2 answers

stlport undefined references

I'm trying to do some work with the version of stlport in the froyo source. I'm getting stlport/stlport/stl/_alloc.h:158: undefined reference to `std::__node_alloc::_M_allocate(unsigned int&)' and stlport/stlport/stl/_alloc.h:161: undefined…
Jay
  • 323
  • 1
  • 3
  • 13
2
votes
3 answers

Problem building STLport NDK r5/ Android

I'm trying to build STLport for Android. I got the following steps, but they are not working: 1 - Clone STLport repository using: git clone git://stlport.git.sourceforge.net/gitroot/stlport/stlport 2 - Configure environment using : ./configure…
Sergio
  • 583
  • 1
  • 5
  • 6
2
votes
2 answers

use stlport in managed c++

Is it possible to use stlport within a Managed C++ DLL? In my project i get several 'unresolved token'-errors from the linker for stlport stuff. e.g.: 1>moc_ParentWidget.obj : error LNK2020: unresolved token (0A000819) "public: __thiscall…
Andreas Roth
  • 699
  • 2
  • 9
  • 30
2
votes
6 answers

LNK2001 error when compiling apps referencing STLport-5.1.4 with VC++ 2008

I apologize in advance for the long post... I used to be able to build our VC++ solutions (we're on VS 2008) when we listed the STLPort include and library directories under VS Menu > Tools > Options > VC++ Directories > Directories for Include and…
Jeremy
  • 1,168
  • 3
  • 17
  • 31
1
2 3 4