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

  • Home
  • SEARCH
  • 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 7575795
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:46:00+00:00 2026-05-30T16:46:00+00:00

After reading the Android NDK documentation i am a bit confused on this issue.

  • 0

After reading the Android NDK documentation i am a bit confused on this issue. The CPLUSPLUS-SUPPORT.html states that:

II.1. C++ Exceptions support:


The NDK toolchain supports C++ exceptions, since NDK r5, however all C++
sources are compiled with -fno-exceptions support by default, for
compatibility reasons with previous releases.

However, STANDALONE-TOOLCHAIN.html says:

5.3 Exceptions, RTTI and STL:


The toolchain binaries do support C++ exceptions and RTTI by default.
They are enabled by default, so use -fno-exceptions and -fno-rtti if you
want to disable them when building sources with them (e.g. to generate
smaller machine code).

These two statements seem to be in complete contradiction of each other. Or have I misunderstood something? So are exceptions enabled or disabled by default? Or does it perhaps depend on some other factor?

My guess is the one of the documents has simply been carried over from an older release and that is the reason for the discrepancy but I would like to know which is correct.

  • 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-30T16:46:02+00:00Added an answer on May 30, 2026 at 4:46 pm

    If you are using the provided ndk-build system to build your apps (which you probably are) then exceptions are disabled by default.

    STANDALONE-TOOLCHAIN.html only applies if you’re using the compiler directly with your own build system, rather than using ndk-build. Here’s what it says:

    It is now possible to use the toolchains provided with the Android NDK
    as standalone compilers. This can be useful if you already have your
    own build system, and only need to ability to invoke the
    cross-compiler to add support to Android for it.

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

Sidebar

Related Questions

After reading some posts like this one: Choose File Dialog It appears that Android
After reading the android documentation about String, which includes this: This class is implemented
I'm starting my first Android app and after reading up I understand that the
After reading this question , I was reminded of when I was taught Java
After reading a bit more about how Gnutella and other P2P networks function, I
After reading this description of late static binding (LSB) I see pretty clearly what
After reading this answer: best way to pick a random subset from a collection?
I've been having problems on compiling Fluidsynth (1.0.9) for Android JNI. After reading into
I got the Hello, Android program to work after reading the tutorials from Google's
I am having difficulties understanding AsyncTask, even after reading everything about it on Developer.Android.

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.