Create a C wrapper around a C++ library that can be linked by a C linker
问题 Following the answer given to this question (Developing C wrapper API for Object-Oriented C++ code) I managed to write a C wrapper for my C++ code. I would like to compile and link my wrapper into a static library (compiled using g++) that could be used, compiled and linked using gcc only (not g++). This way the user of the library would not have to care that the library is written in C++. Is this something possible? 回答1: This link explains some of the compiler options and scenarios: http:/