2 ms·
> Even C++ which is a bit safer in practice is harder to link. Not to go down the C++ evangelist route, but if you want to write libraries in C++ to use with o
by maccard 10y ago
> Even C++ which is a bit safer in practice is harder to link.
Not to go down the C++ evangelist route, but if you want to write libraries in C++ to use with other high level languages, you can wrap the headers in extern "C", and still write C++ as normal in your own code.
- ziotom78 10y ago…unless your library exposes classes/templates, which is probably what the majority of C++ libraries do (e.g., wxWidgets, Qt, Boost, etc.). In this case, creating C bindings is a real pain.