Jump to content
  • 0
Litro

[Help] Compile with Cygwin in Windows

Question

Hi there..

 

I have some trouble when it compiling plugins with (make plugins), overall when compiling server with make sql it was fine but when i do compile plugins it give me some warning just warning, if anyone can shed the light please...

 

gcc version: gcc (GCC) 4.9.3

 

Warning

        MAKE    pluginsmake[1]: Entering directory '/home/Admin/Hercules-master/src/plugins'        CC      HPMHooking.c (CHAR)HPMHooking.c:1:0: warning: -fPIC ignored for target (all code is position independent) // Copyright (c) Hercules Dev Team, licensed under GNU GPL. ^        PLUGIN  HPMHooking_char        CC      HPMHooking.c (LOGIN)HPMHooking.c:1:0: warning: -fPIC ignored for target (all code is position independent) // Copyright (c) Hercules Dev Team, licensed under GNU GPL. ^        PLUGIN  HPMHooking_login        CC      HPMHooking.c (MAP)HPMHooking.c:1:0: warning: -fPIC ignored for target (all code is position independent) // Copyright (c) Hercules Dev Team, licensed under GNU GPL. ^        PLUGIN  HPMHooking_map        CC      sendmail.csendmail.c:1:0: warning: -fPIC ignored for target (all code is position independent) //===== Hercules Plugin ====================================== ^sendmail.c: In function ‘buildin_sendmail’:sendmail.c:144:2: warning: suggest parentheses around assignment used as truth value [-Wparentheses]  if ( sd = map->charid2sd( charid ) ) {  ^sendmail.c:166:3: warning: format ‘%d’ expects argument of type ‘int’, but argument 17 has type ‘time_t’ [-Wformat=]   if ( SQL->Query( map->mysql_handle, "insert into mail ( dest_id, send_name, title, message, zeny, nameid, amount, refine, attribute, identify, card0, card1, card2, card3, time ) values ( %d, '%s', '%s', '%s', %d, %d, %d, %d, %d, %d, %d, %d, %d, %d, %d )", charid, send_name, title, body, zeny, itemid, amount, refine, attribute, identify, card0, card1, card2, card3, time(NULL) ) == SQL_ERROR )   ^        PLUGIN  sendmailmake[1]: Leaving directory '/home/Admin/Hercules-master/src/plugins'

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

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

×
×
  • Create New...

Important Information

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