On 19 February 2018 at 20:24, Alexander Reiche wrote: > Hi, > > i have installed Pre-built GNU toolchain via > sudo apt-get install gcc-arm-linux-gnueabi > > the installed version now is: > arm-linux-gnueabi-gcc (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609 > > when cross compiling arm android with ndk, usually different toolchain has to be selected for each android version, depending on API level > example > API level 9 = 2.3.6 Gingerbread > API level 19 = 4.4.2 KitKat > API level 21 = 5.0.2 Lollipop > > Q: How to set/select the API level on GNU toolchain? > > could not find the answer in documentation Because I don't think the Android API is anything to do with GCC. You've installed a cross-compiler for ARM, but that doesn't include any Android libraries or headers. If you want to build for Android use the Android NDK.