the only thing I can think that can help you is this site:
the problem is you cannot just change the header... if gapi lib is compiled in c++, you will need to tell the linker where to find the mangled functions.
Read the faq, I'm sure you will find a better way to do it :)