I want to use the __attribute__ , but compile failed.
"Support for the __attribute__ keyword means that fewer changes may be required when porting GCC code. This extension is not available in C++ mode unless enabled using the -g++ switch."
In the compile message, you can see "c++11" added in the command.
However, I still got the error, how do i solve this problem? Thanks