Jump to content
  • 0

Error while recompiling.


patz1495

Question


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  07/22/12
  • Last Seen:  

I added Xantara's @itemmap package. I'm using  revision 17420. When I recompiled, I got this error.

 

*http://rathena.org/board/files/file/2242-package-itemmap-getitem-map/

        CC      atcommand.c
atcommand.c: In function âatcommand_itemmapâ:
atcommand.c:1306: warning: suggest parentheses around && within ||
atcommand.c:1327:37: error: macro "msg_txt" requires 2 arguments, but only 1 given
atcommand.c:1327: error: âmsg_txtâ undeclared (first use in this function)
atcommand.c:1327: error: (Each undeclared identifier is reported only once
atcommand.c:1327: error: for each function it appears in.)
atcommand.c:1353:39: error: macro "msg_txt" requires 2 arguments, but only 1 given
atcommand.c:1363:39: error: macro "msg_txt" requires 2 arguments, but only 1 given
atcommand.c:1381:36: error: macro "msg_txt" requires 2 arguments, but only 1 given
make[1]: *** [obj_sql/atcommand.o] Error 1
make[1]: Leaving directory `/root/rathena/src/map'
make: *** [map_sql] Error 2
 
 
Any ideas on how to fix this? A quick help would really be appreciated. Thanks!
Edited by patz1495
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  96
  • Topics Per Day:  0.02
  • Content Count:  554
  • Reputation:   14
  • Joined:  09/24/12
  • Last Seen:  

atcommand.c: In function âatcommand_itemmapâ:

Is that normal?..?

Cuz i do recompile but nothing like that word coming out...

Btw did you have any backup for your source???

Try to put 1 cmd and then recompile,then put one again then recompile in order to find error. ^ ^(Hard Way)

 

Btw according to this error 

atcommand.c:1353:39: error: macro "msg_txt" requires 2 arguments, but only 1 given

Mean something inside the atcommand need 2 argument ( , or  ; or } ) but one 1 is supplement to it...

Try to take alook inside those atcommand...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  29
  • Topics Per Day:  0.01
  • Content Count:  270
  • Reputation:   20
  • Joined:  12/10/11
  • Last Seen:  

Did you diff your files manually?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  14
  • Reputation:   0
  • Joined:  07/22/12
  • Last Seen:  

Solved the problem with the error when compiling. But the .patch does not seem to work. I don't know why. Any ideas on how to implement that? 

Link to comment
Share on other sites

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.

×
×
  • Create New...