How can use NDK JNI to access static C++ Library

I want to use a static library not compiled with NDK within a C++ class that is compiled usinG NDK. How can this be done. So for example I want to use test.lib function where test.lib is some gnu compiled static C++ library (not compiled by using NDK, its third party so no source avail).


Then is it windows static library (which you used to link with windows executables)? If yes then you cannot use it on android because of two things: 1. lib has non-elf file format (elf is used by android) 2. lib is compiled for x86 (amd64) architecture (android devices have arm processor in most cases).

Need Your Help

Drawing a continuous rectangle

visual-c++ c++-cli continuous

i m currently working on visual c++ 2008 express edition..

validate input is a number, in a range of numbers or a specific character

java validation input

I have written the following code that checks if an input value is a number or the character 'R' or 'r'.