Tiny Core Linux

General TC => Programming & Scripting - Unofficial => Topic started by: halma on July 17, 2014, 10:20:13 AM

Title: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-st
Post by: halma on July 17, 2014, 10:20:13 AM
hi,

i am using the *FLAGS what is written on the wiki to build an EXtension.
while i try to build the XEN-Tools as EXtension i got this error Message:

qemu-nbd.c:223:5: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-statement]

someone knows how to fix this issue ?

best regars
Halma
Title: Re: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-st
Post by: Rich on July 17, 2014, 12:28:47 PM
Hi halma
Try adding
Code: [Select]
-std=c99to the flags.
Title: Re: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-st
Post by: halma on July 18, 2014, 07:52:58 AM
sorry for asking again , is this for the CFLAG or CPPFLAG or LDFLAG or all flags ?

thanks
best regards
Halma
Title: Re: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-st
Post by: Rich on July 18, 2014, 09:57:35 AM
Hi halma
Just the compiler flags (CFLAG and CPPFLAG).