Getting undefined reference error for stdout, stderr when compiling using x86 tool chain for Android NDK

I am trying to compile one of the native libdigcert libraries using the Android NDK toolkit.

If I use the toolchain for hands, everything works fine, and if I link this library to my executable, I don't get any linker errors.

If I use toolchain x86, I get linker errors that show an undefined link to stdout, stderr, etc.

I used nm to read the difference between both .a files (arm and x86) and I see that the x86 file has stdout undefined and arm.a doesn't even mention the stdout character.

Can someone point me to what I am missing here?

+7
source share

All Articles