WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: error: ISO C90 forbids mixed declarations and code [-Werror=declaration-after-st  (Read 6903 times)

Offline halma

  • Full Member
  • ***
  • Posts: 164
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
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Hi halma
Try adding
Code: [Select]
-std=c99to the flags.

Offline halma

  • Full Member
  • ***
  • Posts: 164
sorry for asking again , is this for the CFLAG or CPPFLAG or LDFLAG or all flags ?

thanks
best regards
Halma
1 + 2 = 6  cause  10 - 6 = 78 ;-) lol

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11178
Hi halma
Just the compiler flags (CFLAG and CPPFLAG).