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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T21:58:46+00:00 2026-06-08T21:58:46+00:00

I have been building my android app in an android eclipse environment. Building my

  • 0

I have been building my android app in an android eclipse environment. Building my c++ code and compiling it independantly with ndk-build. That works fine.

I need to debug a sigsegv error which is thrown by logcat all of a sudden.

So I switched the project in eclipse to ‘add native code in android’. Now it debugs my c++ code, but gives me an error each time I use any of the std components, such as vector and so I cannot run the code since it contains errors.

The project ran fine on the previous config. I added a lib for std support I believe.

Any idea on how I can properly debug my native code?

Thank you for the help

UPDATE
I totally reinstalled my sdk, eclipse (juno this time) and all plugings. No change. The error checking does not recognise java and std related stuff:

#include <jni.h>
using namespace std;

is underlined in red.

The rest of c++ is recognised properly.

UPDATE2

When I add ${NDKROOT}/sources/cxx-stl/gnu-libstdc++/include to Paths and Includes, The java statements are already included. Net the vectors yet, I also tried to add ${NDKROOT}/sources/cxx-stl/stlport/stlport but it did not fix the vector problem yet. If error checking is disabled, the project compiles and if I make a synthax error, the compiler warns me. That is ok for me.

  • 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-08T21:58:49+00:00Added an answer on June 8, 2026 at 9:58 pm

    You, probably, can, first, disable errors in Project Properties|C/C++ General|Code Analysis so your project compiles.

    You can then check if the include paths in Project Properties|C/C++ General|Paths and Symbols are correct.

    I have also heard that updating the ADT plugin may help.

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

Sidebar

Related Questions

I have been slowing learning and building my first android app. I'm VERY new
I have set up debugging in Eclipse for native code using the Android NDK
I have an ASP.NET MVC app that I have been building, and I am
This morning I tried running a Silverlight 5 App that we have been building
I have been developing my Android App on Linux and Eclipse for a year
So i have been building an AR engine that makes use of the magnetic
I am building a web application and have been told that using object oriented
I thought I'd have a crack at building an Android app having not done
My team and I have been engaged in building several cross-platform (BlackBerry, Android, iOS)
I have been trying to build only the /libcore directory of the Android platform.

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.