Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV-android 2.4.7.1 linker error: undefined reference to 'typeinfo'

Building an ndk-based project for android and I get a bunch of linker errors such as

OpenCV-2.4.7.1-android-sdk/sdk/native/libs/armeabi-v7a/libopencv_flann.a(miniflann.cpp.o):miniflann.cpp:function cvflann::anyimpl::typed_base_any_policy<double>::type(): error: undefined reference to 'typeinfo for double'

All the errors are of the same type and within flann. I'm using ndk r9b with gcc-4.8. Also, I don't have this problem with 2.4.7. What changed in 2.4.7.1 that might cause this?