<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks for the hint.<div class=""><br class=""></div><div class="">I did a naive test and managed to use the same function with different typedefs. Basically, it is relied on that C has no name mangling while C++ has name mangling. Could this trick applies to PETSc? The files for the test are attached. The procedure for compilation is in the `main.cpp`<div class=""><br class=""></div><div class="">Best regards,</div><div class=""><br class=""></div><div class="">C.-Y. GAO<br class=""><div class=""><div class=""><div class=""><div class=""><div></div></div></div></div></div></div></div></body></html>