I am writing a piece of software whose API is only for C, because it is easy to associate C code with other software products / clients.
The actual program code, however, runs in C ++ using all the usual C ++ features such as exception, STL, etc.
The exported API / headers themselves will be written in pure C with keywords export "C".
What should I be afraid of if I intend to deliver this DLL to users who do not know about C ++ on their side? Usually they don’t have to worry about the actual code being in C ++, and only need to know how to link it to the C code through the header file. I was told that I should make sure that libstd is connected statically, which may not be possible on all platforms (there will be Linux and Windows). What about exceptions? etc.
source
share