Is there a way to compile C++ to C Code?
问题 I have a program which is configured by the user by using C++ classes and the same class should be used to configure a program which can only use a subset of C99 (Open CL Language). So my question is: Is there a way to compile C++ to C-Code? Open Source would be great! 回答1: The C++ FAQ has a list of possibilities: Is it possible to convert C++ to C?. In short, it says that you can't expect this to give you particularly readable code. Think of the complexities involved; multiple inheritance,