I am currently developing a C program depending on a third-party library with a C interface (the header files are written in C). I compile my program by linking all the required .so files, and everything is fine. However, I recently take a peek at the source code of this third-party library. Apparently, it is written in C++ and it does utilize some C++ features (namespaces, OOP, and so on).
Is this even possible? So I can write a library in C++, provide a C interface, generate .so files to hide C++ implementation, and then my library can be used within a C program? Will it cause problems?
Thanks!