Is there any way to compile C code like this using a C++(g++) compiler.
For instance, is it possible to compile and run the following code:
int main()
{
int private;
private = 9;
return private;
}
it has private
variable name, which is a C++ keyword.
The real project is, mixed with C and C++ codes, the driver is written by C with some structure having member name like private
, but application is written in C++, and I've tried using extern "C" but doesn't work.