Jump to content

Problem compile mainline_release


Recommended Posts

I tried to compile mainline_release clean, and I have that erors:

 

char_item.cpp:4791: error: duplicate case value
char_item.cpp:4526: error: previously used here
char_item.cpp:4849: error: duplicate case value
char_item.cpp:4521: error: previously used here
char_item.cpp:4884: error: duplicate case value
char_item.cpp:4518: error: previously used here
char_item.cpp:4885: error: duplicate case value
char_item.cpp:4520: error: previously used here
char_item.cpp:4926: error: 'item2' was not declared in this scope
char_item.cpp:4962: error: duplicate case value
char_item.cpp:2200: error: previously used here
char_item.cpp:5000: error: duplicate case value
char_item.cpp:2061: error: previously used here
char_item.cpp:5069: error: break statement not within loop or switch
char_item.cpp:5071: error: case label 'ITEM_METIN' not within a switch statement
char_item.cpp:5150: error: break statement not within loop or switch
char_item.cpp:5152: error: case label 'ITEM_AUTOUSE' not within a switch statement
char_item.cpp:5153: error: case label 'ITEM_MATERIAL' not within a switch statement
char_item.cpp:5154: error: case label 'ITEM_SPECIAL' not within a switch statement
char_item.cpp:5155: error: case label 'ITEM_TOOL' not within a switch statement
char_item.cpp:5156: error: case label 'ITEM_LOTTERY' not within a switch statement
char_item.cpp:5157: error: break statement not within loop or switch
char_item.cpp:5159: error: case label 'ITEM_TOTEM' not within a switch statement
char_item.cpp:5164: error: break statement not within loop or switch
char_item.cpp:5166: error: case label 'ITEM_BLEND' not within a switch statement
char_item.cpp:5172: warning: comparison between signed and unsigned integer expressions
char_item.cpp:5198: error: break statement not within loop or switch
char_item.cpp:5199: error: case label 'ITEM_EXTRACT' not within a switch statement
char_item.cpp:5224: error: break statement not within loop or switch
char_item.cpp:5226: error: case label 'ITEM_NONE' not within a switch statement
char_item.cpp:5228: error: break statement not within loop or switch
char_item.cpp:5230: error: case label not within a switch statement
char_item.cpp: At global scope:
char_item.cpp:5235: error: expected unqualified-id before 'return'
char_item.cpp:5236: error: expected declaration before '}' token
 

Link to comment
Share on other sites

  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

hello mr [dev]twix, google is your friend, start using it not for just searching free posted tutorials/system to sell them but also to learn something

" char_item.cpp:4791: error: duplicate case value
char_item.cpp:4526: error: previously used here "

this is pretty obvious, you have two times the same case or something like this "case a || b", also learn to read

" char_item.cpp:4926: error: 'item2' was not declared in this scope "

when you declare a value in an if statement, you can't use it outside of it

"char_item.cpp:5069: error: break statement not within loop or switch"

break must be inside of a loop (for,while, do while) or a switch statement, why make some effort and read the errors, when you can ask other people for help right?

" char_item.cpp:5071: error: case label 'ITEM_METIN' not within a switch statement "

a case outside a switch statement

char_item.cpp:5235: error: expected unqualified-id before 'return'

need to see the code for this, might be a syntax error

"char_item.cpp:5236: error: expected declaration before '}' token "

same

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.