Jump to content
×
×
  • Create New...
  • 0

Problem compile mainline_release


ZyuX

Question

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
  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Read our Rules
  • Activity

    1. 0

      [Land of Heroes] We are looking for Game / Game Economy Designers

    2. 177

      Render Target Remastered

    3. 1

      MySQL stop when start server

    4. 0

    5. 59

      Emoji in TextLine

    6. 1

      MySQL stop when start server

  • Recently Browsing

    No registered users viewing this page.

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.