Jump to content
  • 0

[obj/status.o] Error 1


Question

Posted

Hi =D
Plissss Help me!!!

my error:

status.c: In function 'status_yaml_readdb_refine_sub':
status.c:14239:3: error: 'for' loop initial declarations are only allowed in C99                                                                                         mode
   for (yamlwrapper* type = yaml_iterator_first(it); yaml_iterator_has_next(it);                                                                                         type = yaml_iterator_next(it)) {
   ^
status.c:14239:3: note: use option -std=c99 or -std=gnu99 to compile your code
status.c:14273:3: error: 'for' loop initial declarations are only allowed in C99                                                                                         mode
   for (yamlwrapper* level = yaml_iterator_first(it); yaml_iterator_has_next(it)                                                                                        ; level = yaml_iterator_next(it)) {
   ^
status.c: In function 'status_yaml_readdb_refine':
status.c:14323:2: error: 'for' loop initial declarations are only allowed in C99                                                                                         mode
  for (int i = 0; i < ARRAYLENGTH(labels); i++) {
  ^
make[1]: *** [obj/status.o] Error 1
make[1]: Leaving directory `/home/LizardRO_xVuiTmL/ragnarok/src/map'
make: *** [map] Error 2

image.thumb.png.3523349ad1dbbafe59699695033d387d.png

 

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...