The following article describes how to mix C and C++ code when you are developing a Lianja extension using the SDK.
https://isocpp.org/wiki/faq/mixing-c-and-cpp#call-cpp