unable to access gpio in Android

I am having a Beagle , running android.
I am trying to access the gpio through JNI.
I am unable to call a system call from c file because i am unable to
create a dll library from the c file.
ndk build command is giving an error.

what steps u hv followed ?
what is error your getting?