Jump to content
  • 0
Sign in to follow this  
Break San

In function ‘vending_purchasereq’:

Question

I have the following error can anyone help me the one?

 

CC      vending.cvending.c: In function ‘vending_purchasereq’:vending.c:284: warning: ‘item_name’ may be used uninitialized in this function        LD      map-serverobj_sql/atcommand.o: In function `atcommand_item':/home/emulador/src/map/atcommand.c:901: undefined reference to `strcmpi'collect2: ld returned 1 exit statusmake[1]: *** [../../map-server] Error 1make[1]: Leaving directory `/home/emulador/src/map'make: *** [map_sql] Error 2

 

Share this post


Link to post
Share on other sites

6 answers to this question

Recommended Posts

  • 0

I guess you're using a *nix system, so go to src/common/cbasetypes.h and check you have these:

#else#define strcmpi     strcasecmp#define stricmp     strcasecmp#define strncmpi    strncasecmp#define strnicmp    strncasecmp#endif

Share this post


Link to post
Share on other sites
  • 0

 

I guess you're using a *nix system, so go to src/common/cbasetypes.h and check you have these:

#else#define strcmpi     strcasecmp#define stricmp     strcasecmp#define strncmpi    strncasecmp#define strnicmp    strncasecmp#endif

 

I checked and I do not I can add in that line?

Share this post


Link to post
Share on other sites
  • 0

You could, but that's something that should be there since the old eathena days. I suggest you to work with a clean copy of Hercules to avoid other errors.

Share this post


Link to post
Share on other sites
  • 0

You could, but that's something that should be there since the old eathena days. I suggest you to work with a clean copy of Hercules to avoid other errors.

 

He was running on windows switched to linux tried to compile gave it.

Share this post


Link to post
Share on other sites
  • 0

Windows doesn't have this problem because strcmpi is specific for Windows OSes. In Linux, those macros I posted is what is needed to use the POSIX versions.

 

Post your cbasetypes.h

Share this post


Link to post
Share on other sites
  • 0

Windows doesn't have this problem because strcmpi is specific for Windows OSes. In Linux, those macros I posted is what is needed to use the POSIX versions.

 

Post your cbasetypes.h

 

Solve added the above command.

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.