i'm trying to use std::vecotr in the jni code
i understand i need to add this line
if it works fine using ndk-build, then the issue is likely with some Eclipse configuration settings for C++;
so, not sure how much I can help further in this case; also, the error sounds pretty general and STL related, so I guess other folks using JNI and C++ (but not necessarily using Vuforia) might have faced similar issues;
have you searched the internet for some discussion about this topic (std::string + Eclipse + error...) ?
Altought it realy worked when building with ndk-build,
when I try editing the file in eclipse I receive in my line :
std::string test = ""; - Description Resource Path Location Type
Thanks for the info
i tried again what you were saying
added to cloudreco.cpp - #include <vector>
added to application.mk - APP_STL := stlport_static
and got lots of ndk lib errors
really frustrating.. if u can help some how it will be much appreciated
you should be able to use std::vector by simply adding APP_STL := stlport_static to your Application.mk file
(note it MUST be added in Application.mk and NOT in Android.mk, just mentioning in case you did put it in the wrong file....)
I just verified that the following code works (I am using Android NDK r8b, if this can help):
and somewhere in your ImageTargets.cpp code, add this:
Maybe could you try the same ?
Are you sure you want to delete this message?
Are you sure you want to delete this conversation?