Re: [hatari-devel] Compile error with latest sources

[ Thread Index | Date Index | More Archives ]


Thanks, I see this also, and commited a fix.

(I guess originating code is C++.)

	- Eero

On 01/24/2017 10:02 PM, Uwe Seimet wrote:
Hi all,

With the latest sources I get this error on Linux with gcc 4.9.4:

/home/us/hatari/hatari/src/cpu/fpp.c: In function ‘fpu_null’:
/home/us/hatari/hatari/src/cpu/fpp.c:897:2: error: ‘for’ loop initial
declarations are only allowed in C99 or C11 mode
  for (int i = 0; i < 8; i++)
/home/us/hatari/hatari/src/cpu/fpp.c:897:2: note: use option -std=c99,
-std=gnu99, -std=c11 or -std=gnu11 to compile your code
make[2]: *** [src/cpu/CMakeFiles/UaeCpu.dir/build.make:735:
src/cpu/CMakeFiles/UaeCpu.dir/fpp.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:429:
src/cpu/CMakeFiles/UaeCpu.dir/all] Error 2

Take care


Mail converted by MHonArc 2.6.19+