5 Mar
2015
5 Mar
'15
13:54
On 03/05/2015 01:47 PM, Michael Andres wrote:
[https://gcc.gnu.org/onlinedocs/gcc/Typeof.html] ... If you are writing a header file that must work when included in ISO C programs, write __typeof__ instead of typeof.
'typeof' is a gcc extension. It's turned off because you're using 'c++ -ansi'.
Ah, I tried adding -std=c++0x ( c++11 wasn't available in this compiler version) but didn't notice -ansi in the compiler line. Just for curiosity I tried now using -std=gnu++0x and it works too. I'll use the "#define typeof __typeof__" solution, which works fine. Thanks! -- Antonio Larrosa -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org To contact the owner, e-mail: zypp-devel+owner@opensuse.org