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 8152613
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:45:56+00:00 2026-06-06T15:45:56+00:00

I develop some native libraries for Android and use Boost libraries – just headers-based

  • 0

I develop some native libraries for Android and use Boost libraries – just headers-based ones. The problem I am facing is that when I try to link some of my native libraries against some system library the UnsatisfiedLinkError is thrown. It is due to different C++ runtimes as stated in the NDK documentation:

You can only select a single C++ runtime that all your code will
depend on. It is not possible to mix shared libraries compiled against
different C++ runtimes.

System libraries do not use RTTI and Exceptions, but my libraries use it implicitly.
I know there are macros BOOST_EXCEPTION_DISABLE and BOOST_NO_RTTI, but I am not able to make it working. I tried to set them as compiler flags and in the config.hpp as well, but with no luck – still getting many errors like

cannot use typeid with -fno-rtti

How can I disable these features in Boost, is it even possible?

  • 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-06-06T15:45:57+00:00Added an answer on June 6, 2026 at 3:45 pm

    The answer is “maybe”.
    Some boost libraries will work with exceptions disabled – some will not.
    Same for RTTI.

    I suggest you check the documentation for the particular boost libraries that you are interested in.

    For example, Boost.Array will work with exceptions disabled, but Boost.Format will not.

    If you are getting messages like cannot use typeid with -fno-rtti, that will probably be while compiling some part of Boost that requires RTTI. Where the error occurs will tell you which library (usually).

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

Sidebar

Related Questions

I am a native windows programmer and I was just starting to develop some
I develop some application that has database wery generic so really can't use it
I Develop a Form Designer, also develop some custom control that inherit from standard
We develop some product using an internal design tool that stores information in XML
I will have to develop some android applications. Witch mobile phone is better for
I'm preparing to develop some mobile apps for Android, iOS and WP7. Having heard
We hired a C programmer to develop a native component for use in a
I want to develop some small apps for personal use. I don't want to
I have written code in native ANSI C++ that does some complicated numerical analysis.
I develop some site, that uses authentication ticket from API of other service. I

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.