...
replace top with
#include <stdio.h> #include <string.h> #include <stdlib.h> #include "common/hercules.h" /* Should always be the first Hercules file included! (if you don't make it first, you won't be able to use interfaces) */ #include "common/HPMi.h" #include "common/timer.h" #include "map/script.h" #include "map/status.h" #include "map/pc.h" #include "map/clif.h" #include "map/pet.h" #include "map/script.h" #include "map/itemdb.h" #include "plugins/HPMHooking.h" #include "common/HPMDataCheck.h" /* should always be the last Hercules file included! (if you don't make it last, it'll intentionally break compile time) */Im not sure, but I think you can remove
#include <stdio.h> #include <string.h> #include <stdlib.h>too
Well errors are gone, and the ".so" file was successfully created. However, console says
[Error]: script error in file 'npc/custom/.../cro-newbie.txt' line 17column 5 parse_line: expect command, missing function name or calling undeclared function 15: mes "[The Newbie]"; 16: * 17: rentitem2(25511,1,1,1); ~~~~^
YAY! Got it, forgot to enable rentitem2 in conf/plugins.conf ... silly me ^__^ everything's working now