Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6027369
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:34:58+00:00 2026-05-23T04:34:58+00:00

I’m a Java developer by trade and my exposure to C++ / JNI has

  • 0

I’m a Java developer by trade and my exposure to C++ / JNI has been limited until now.

I’ve managed to do pretty well so far but now that I’m venturing into doing “Clever” things I’m becoming more and more limited by flying blind:

I’m using the gnustl_static library because of other code which I’ve ported in the same native project space. However I’m finding it very difficult to learn C++ with one hand tied behind my back due to the cut down nature of the library.

It would all be fine is there was a Javadoc (Obviously not a Javadoc ;)) or some such documentation which I could use to find what was included inside this library and in turn, what was contained within those libraries (and while I’m wishing for the moon) why certain types such as “map” aren’t included and what best to use instead!

From searching Google these past weeks I’ve not run across any centralised & useful resource and from everyone else’s knowledge and expertise I feel like I’m missing a vital and basic resource!

Could someone please give me a hand and point me to Documentation or Tutorials or Examples or something which will help me navigate the dangerous waters of JNI / C++ / Native Android coding?

EDIT:

Someone has explained to me that STL is Standard Template Library and there is a link to what is contained within it here:
http://www.sgi.com/tech/stl/stl_index.html

They have also explained that gnustl_static library is the STL library based on GNU machines and it is a set of headers located inside:
${ANDROID-NDK}\sources\cxx-stl\gnu-libstdc++\include

Suffice to say this has immeasurably helped me out since I had no idea what was going on. I just didn’t know enough to know where to look.

I’m still slightly worried by the fact that STL doesn’t seem to be owned by someone? (I’m thinking Apache style body here). Can anyone correct me on that?

As you can tell. Still a little adrift here.

EDIT2:

If the STL is the library used to describe all non primitive types and functions… why is string.h being pulled from:
${ANDROID-NDK}\platforms\android-9\arch-arm\usr\include

PS: I know I sound stupid here but I promise I’m just uninformed. I’m just not sure where to start looking as I feel through necessity I’ve started in the middle. Again, links to anything you think I would find useful would be great!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T04:34:59+00:00Added an answer on May 23, 2026 at 4:34 am

    gnustl_static is GNU stdlibc++ as it comes with gcc. It’s official documentation is here, but it’s probably useless as tutorial, so preferably get some decent book on C++.

    The library does not appear to be cut down. It may look like that to you because standard C++ library defined in the specification is simply lot smaller than the one in Java. It has standard access to files, but no file manipulation, no threads, no network etc.

    In android POSIX interface is generally available (plain C). If you want C++, try getting boost, which wraps the various system-specific interfaces in decent portable C++ components. However, many services on the Android platform won’t be available except by going through the Java layer.

    Ad Edit: Standard library specification is owned by somebody, namely ISO. Unfortunately the standard is not freely downloadable from ISO, but searching the web reveals this.

    Ad Edit2: The C++ standard library is based on the underlying C standard library. The C++ standard library has the extension-less headers, while the standard C library has headers with suffix .h. Both are defined by (different) ISO standards. The C library is most tied to the operating system (depends on specific method to make system calls), so it’s provided with the system. On the other hand the C++ library is more tied to the compiler while it uses the C library to talk to the system, so it’s provided with the compiler. That’s why they live in different places.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

That's pretty much it. I'm using Nokogiri to scrape a web page what has
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I've got a string that has curly quotes in it. I'd like to replace
link Im having trouble converting the html entites into html characters, (&# 8217;) i
this is what i have right now Drawing an RSS feed into the php,
I want to count how many characters a certain string has in PHP, but
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.