Besides C ++, which non-toy languages have direct or easy to use C compatibility? Like in "I can take the C library there and compile my code against it without to find, write or configure some kind of shell."
I know that many languages are compatible with C through some external call or binding (I used bindings in Java, Ruby, Python, etc., so I know that this can be done). But you rely on someone (maybe you) to write and maintain a binding for all the libraries you want to use, and the binding should work on all platforms, etc.
More expressive languages than C ++ have this feature?
Thanks to everyone for mentioning swig or related wrapper tools. I know that they exist, but I don’t think that they are really as simple as C-> C ++ integration ... but then integration with C may be the only one that is easier in C ++;))
source
share