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.
You, probably, can, first, disable errors in
Project Properties|C/C++ General|Code Analysisso your project compiles.You can then check if the include paths in
Project Properties|C/C++ General|Paths and Symbolsare correct.I have also heard that updating the ADT plugin may help.