AnsweredAssumed Answered


Question asked by wubt on Mar 20, 2017
Latest reply on Apr 12, 2017 by Kader.M


I want to use the __attribute__ , but compile failed.

In the cces_Blackfin_Compiler_library_manual.pdf points


"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."


"The -g++ (C++ mode) switch directs the compiler to emulate a large number of extensions available in GNU C++. By default, the C++ dialect is based on the ANSI/ISO 14882:2003 standard. This dialect can be changed by additionally enabling the -c++11 switch."
I enabled the c++11.

enable c++11


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