12 Mar
2013
12 Mar
'13
9:13 p.m.
On 2013–03–12 Marco wrote:
I'm clueless at the moment and my gut feeling says that it's not the compiler, rather some header that gets included and shouldn't. But I may be totally off with that.
I got it! Here's a minimal example: // file.cpp #include <cstdlib> int main(){ return ES;} g++ file.cpp ./a.out echo $? 2 ES is defined in /usr/include/sys/regset.h with the following comment: * The names and offsets defined here should be specified by the * AMD64 ABI suppl. I have no clue why Solaris defines these registers. Linux and other BSDs do not. It seems like this should be fixed upstream. Hope this helps. Marco