Content originally posted in LPCWare by stalisman on Mon Apr 30 08:21:54 MST 2012
Quote: Polux rsv
Despite it is "not supported", I could create C++ projects and have C++ setup in the project properties->C/C++ Build-> settings-> tools settings.
Probably something will not work during a real build, link, debug,.....
Angelo
Hi,
the problem you are most likely to get is that the C compiler will simply fail to understand any C++ specific constructs and syntax. It would make far more sense for you to convert from C++ classes to C structures etc.
A lot of people write C code for C++ compilers, but that is because they haven't made the investment in learning C++ properly.
It is almost unheard of for folks to expect C++ code for a C compiler to work. ( It's like fitting Ferrari Engines into Skodas).
Cheers