Jump to content
  • 0

Compilation error while make sql


Xtremist

Question


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  196
  • Reputation:   20
  • Joined:  11/20/11
  • Last Seen:  

I get the following error 

I m using Cent OS 32bit and svn version is latest trunk 17307

 

I did ./configure --enable-packetver=20100616 --disable-64bit

and make clean and make sql

 

 

 

In file included from map.c:50:
cashshop.h:58:26: warning: no newline at end of file
        CC      chrif.c
        CC      clif.c
In file included from clif.c:46:
cashshop.h:58:26: warning: no newline at end of file
clif.c:8747:2: error: invalid preprocessing directive #elseif
make[1]: *** [obj_sql/clif.o] Error 1
make[1]: Leaving directory `/trunk/src/map'
make: *** [map_sql] Error 2
 

 

 
Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  48
  • Topics Per Day:  0.01
  • Content Count:  1125
  • Reputation:   236
  • Joined:  07/30/12
  • Last Seen:  

Check your clif.c at line 8747

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  196
  • Reputation:   20
  • Joined:  11/20/11
  • Last Seen:  

original when its giving error

 

#if PACKETVER < 20101124
    WBUFW(buf, 0) = 0x2d7;
#elseif PACKETVER < 20120925 //line 8747
    WBUFW(buf, 0) = 0x859;
#else
    WBUFW(buf, 0) = 0x997;
#endif

 

 

Changed it to :

 

#if PACKETVER < 20101124
    WBUFW(buf, 0) = 0x2d7;
#else
    WBUFW(buf, 0) = 0x997;
#endif
#if PACKETVER < 20120925
    WBUFW(buf, 0) = 0x859;
#else
    WBUFW(buf, 0) = 0x997;
#endif
 

Worked fine now :)

Some one do the changes in original rA repo too.

 
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  39
  • Topics Per Day:  0.01
  • Content Count:  196
  • Reputation:   20
  • Joined:  11/20/11
  • Last Seen:  

Bump Is this fixed in the latest repo?

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