Jump to content
  • 0

Recompile Error on Script.C Map centOS


Question

Posted (edited)

Can't seem to get my map server to recompile anymore after updating to latest rAthena,  I have no idea how do fix it as the code looks fine to me?

 

This is the error I get when recompiling

 

script.c: In function 'parse_variable':
script.c:1068: error: 'C_ADD_PP' undeclared (first use in this function)
script.c:1068: error: (Each undeclared identifier is reported only once
script.c:1068: error: for each function it appears in.)
script.c:1069: error: 'C_SUB_PP' undeclared (first use in this function)
make[1]: *** [obj/script.o] Error 1
make[1]: Leaving directory `/root/Desktop/rAthena/src/map'
make: *** [map] Error 2

 

 

Here are the lines in question by my recompile log.

	if( type == C_NOP &&
	!( ( p[0] == '=' && p[1] != '=' && (type = C_EQ) ) // =
	|| ( p[0] == '+' && p[1] == '=' && (type = C_ADD) ) // +=
	|| ( p[0] == '-' && p[1] == '=' && (type = C_SUB) ) // -=
	|| ( p[0] == '^' && p[1] == '=' && (type = C_XOR) ) // ^=
	|| ( p[0] == '|' && p[1] == '=' && (type = C_OR ) ) // |=
	|| ( p[0] == '&' && p[1] == '=' && (type = C_AND) ) // &=
	|| ( p[0] == '*' && p[1] == '=' && (type = C_MUL) ) // *=
	|| ( p[0] == '/' && p[1] == '=' && (type = C_DIV) ) // /=
	|| ( p[0] == '%' && p[1] == '=' && (type = C_MOD) ) // %=
	|| ( p[0] == '~' && p[1] == '=' && (type = C_NOT) ) // ~=
	|| ( p[0] == '+' && p[1] == '+' && (type = C_ADD_PP) ) // ++
	|| ( p[0] == '-' && p[1] == '-' && (type = C_SUB_PP) ) // --
	|| ( p[0] == '<' && p[1] == '<' && p[2] == '=' && (type = C_L_SHIFT) ) // <<=
	|| ( p[0] == '>' && p[1] == '>' && p[2] == '=' && (type = C_R_SHIFT) ) // >>=
	) )

The code for Script.C is too long to post on the forum I was going to upload it but I don't have proper permissions to do so, it can be pulled from the github from src/map/script.c    I don't know code very well but to me it looks fine.   Am I in the proper support area?    Help very much appreciated,  Thank you!

Edited by Elithe

2 answers to this question

Recommended Posts

  • 0
Posted

perhaps you should update your emulator?

 

it should be this, in currenct rAthena.

	|| ( p[0] == '+' && p[1] == '+' && (type = C_ADD_POST) ) // post ++
	|| ( p[0] == '-' && p[1] == '-' && (type = C_SUB_POST) ) // post --
  • 0
Posted

I feel really stupid, when I attempted to update I completely forgot that previously edited files do not get overwritten I would have to make the changes manually.  I got the server compiled and looked over all changes since last revision that I used.  Sorry for the thread, thank you for pointing that out I don't know why I didn't think to compare the two files.

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...