I've compiled the native activity sample and it runs fine. When I switch from main.c to main.cpp I get a compiler error 

$ /cygdrive/c/android-ndk-r7/ndk-build
make: *** No rule to make target `jni/main.c', needed by `obj/local/armeabi/objs/native-activity/main.o'.  Stop.


I changed the make file to main.cpp.

I'm new to Android and Linux. I'm using Cygwin. 


Question: awk match how to pass 3rd argument
Answer: $ awk -F'"' -v OFS='|' '{print $2, $6, "temp", $4}' file
AVERAGE_TIME|0xDZZ|temp|float


If that doesn't do what you want then please edit your question to clarify your requirements and add some more truly representative sample input and expected output.