i have problem when copilling my server, in windows dont have any problem, but in linux have a lot of errors in pc.c.
pc.c: At top level:
pc.c:1378:12: warning: ‘pc_isAllowedCardOn_Ancient’ defined but not used [-Wunused-function]
static int pc_isAllowedCardOn_Ancient(struct map_session_data *sd,int s,int eqindex)
^
cc obj/pc.o -o obj/pc
/usr/lib/gcc/x86_64-redhat-linux/4.8.3/../../../../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
obj/pc.o: In function `pc_Premium_end':
/home/ragnarok12/emulador/src/map/pc.c:224: undefined reference to `map_id2sd'
/home/ragnarok12/emulador/src/map/pc.c:231: undefined reference to `ShowError'
/home/ragnarok12/emulador/src/map/pc.c:241: undefined reference to `gettick'
/home/ragnarok12/emulador/src/map/pc.c:242: undefined reference to `atcommand_expinfo_sub'
.....
obj/pc.o: In function `pc_del_talisman':
/home/ragnarok12/emulador/src/map/pc.c:11839: undefined reference to `clif_talisman'
obj/pc.o: In function `pc_bonus_script_clear':
/home/ragnarok12/emulador/src/map/pc.c:12802: undefined reference to `status_calc_bl_'
obj/pc.o: In function `pc_setoption':
/home/ragnarok12/emulador/src/map/pc.c:9949: undefined reference to `clif_skillinfoblock'
obj/pc.o: In function `pc_bonus_script_clear_all':
/home/ragnarok12/emulador/src/map/pc.c:12826: undefined reference to `status_calc_bl_'
obj/pc.o: In function `pc_cell_basilica':
/home/ragnarok12/emulador/src/map/pc.c:12838: undefined reference to `status_change_end_'
obj/pc.o: In function `pc_itemheal':
/home/ragnarok12/emulador/src/map/pc.c:9528: undefined reference to `status_heal'
obj/pc.o: In function `pc_item_remove4all':
/home/ragnarok12/emulador/src/map/pc.c:1130: undefined reference to `mapit_free'
/home/ragnarok12/emulador/src/map/pc.c:1092: undefined reference to `chrif_item_remove4all'
obj/pc.o: In function `pc_putitemtocart':
/home/ragnarok12/emulador/src/map/pc.c:5781: undefined reference to `clif_cart_additem_ack'
obj/pc.o: In function `pc_respawn':
/home/ragnarok12/emulador/src/map/pc.c:8088: undefined reference to `clif_resurrection'
obj/pc.o: In function `pc_checkitem':
/home/ragnarok12/emulador/src/map/pc.c:11152: undefined reference to `status_calc_bl_'
obj/pc.o: In function `pc_getitemfromcart':
/home/ragnarok12/emulador/src/map/pc.c:5825: undefined reference to `clif_additem'
obj/pc.o:(.data.rel.ro+0x38): undefined reference to `is_day_of_sun'
obj/pc.o:(.data.rel.ro+0x78): undefined reference to `is_day_of_moon'
obj/pc.o:(.data.rel.ro+0xb8): undefined reference to `is_day_of_star'
collect2: error: ld returned 1 exit status
make[1]: ** [obj/pc] Erro 1
make[1]: Saindo do diretório `/home/ragnarok12/emulador/src/map'
make: ** [map] Erro 2
Question
brunoshp
Hi,
i have problem when copilling my server, in windows dont have any problem, but in linux have a lot of errors in pc.c.
my gcc is new.
help me?
Edited by brunoshp0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.