On 17/01/2016 23:23, Programmingkid wrote: > When compiling under Xcode, the program does compile and run. It prints "GCC > version = 4.2.1". > > When I try to compile it under gcc 4.2.1 using just the terminal, I see this > error message: > main.cpp: In function ‘int main(int, char* const*)’: > main.cpp:6: error: size of array ‘control’ is not an integral > constant-expression > > Why there is a difference between XCode and the terminal I have no idea. > > When compiling it under gcc 4.9.2, it compiles and runs without problem. > > I have set the configure option for cc to gcc-4.9 with this "-cc=gcc-4.9". So > the error message makes me believe that the wrong compiler is being used. > > This is the full configure command options I used: > ./configure --cxx=gcc-4.9 --cc=gcc-4.9 --objcc=gcc-4.9 --disable-gtk > --disable-sdl --target-list=ppc-softmmu,i386-softmmu > > Any insight as to what could be wrong?
What's the definition of the CMSG_SPACE macro under OS X? Paolo