Check out the open source SWIG software (Simplified Wrapper and Interface Generator). The first suggestion for joining a web page:
SWIG is a software development tool that connects programs written in C and C ++ with many high-level programming languages. SWIG is used with various types of languages including common scripting languages such as Perl, PHP, Python, Tcl, and Ruby.
Very mature (the initial release is February 1996 according to Wikipedia), and there are many textbooks, documentation, and help.
source
share