Awka compiles C code generated from awka code into compiled program. Did anybody try to call generated functions directly from C++ program? That will require some changes, e.g. main() will have to become a public function with extern declaration and output will have to be written to an output buffer (of the above public function) instead of stdout. The advantage - added performance of executing awka procedure in same process space with compiled client.
I found answer to my question in awka documentation:
-c fn Instead of generating a 'main' function, awka will call this function fn. This is used to integrate translated code into a larger C or C++ application.