[hatari-devel] Compile error with latest sources |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
- To: hatari-devel@xxxxxxxxxxxxxxxxxxx
- Subject: [hatari-devel] Compile error with latest sources
- From: Uwe Seimet <Uwe.Seimet@xxxxxxxxx>
- Date: Tue, 24 Jan 2017 21:02:52 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1485288173; l=649; s=domk; d=seimet.de; h=Content-Transfer-Encoding:Content-Disposition:Content-Type: MIME-Version:Subject:To:From:Date; bh=+iSKHxZ6mUygmoP/TKeGvkd04gXj22vpu45pH84RVWM=; b=bQp5gnBIsehThojLHhaydI162HtqDJPOfEWHYjaJX/smGhjEOkNQkldrpju/UJn4qy J0AbTJjN9sljC6ZtHwNu/9C7Du/iuPCEqSfhGqp+Fg0ktYnJzkl56ZSStBDA7+jeJpDb 741/eKibhSigk+y87eaTMCIJLoZ+/JPZBLUeM=
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
Uwe