Dvrstle Posted May 29, 2012 Posted May 29, 2012 battle.c:10811:15: warning: null character(s) ignored battle.c:10811:17: warning: null character(s) ignored battle.c:10811:19: warning: null character(s) ignored battle.c:10811:21: warning: null character(s) ignored battle.c:10811:23: warning: null character(s) ignored battle.c:10811:25: warning: null character(s) ignored battle.c:10811:27: warning: null character(s) ignored battle.c:10811:29: warning: null character(s) ignored battle.c:10811:31: warning: null character(s) ignored battle.c:10811:33: warning: null character(s) ignored battle.c:10811:35: warning: null character(s) ignored battle.c:10811:37: warning: null character(s) ignored battle.c:10811:39: warning: null character(s) ignored battle.c:10811:41: warning: null character(s) ignored battle.c:10811:43: warning: null character(s) ignored battle.c:10811:45: warning: null character(s) ignored battle.c:10811:47: warning: null character(s) ignored battle.c:10811:49: warning: null character(s) ignored battle.c:10811:51: warning: null character(s) ignored battle.c:10811:53: warning: null character(s) ignored battle.c:10812:1: warning: null character(s) ignored battle.c:10813:1: warning: null character(s) ignored battle.c:10813:3: warning: null character(s) ignored battle.c:10814:1: warning: null character(s) ignored battle.c:10815:1: warning: null character(s) ignored battle.c:10815:5: warning: null character(s) ignored battle.c:10815:7: warning: null character(s) ignored battle.c:10815:9: warning: null character(s) ignored battle.c:10815:11: warning: null character(s) ignored battle.c:10815:13: warning: null character(s) ignored battle.c:10815:15: warning: null character(s) ignored battle.c:10815:17: warning: null character(s) ignored battle.c:10815:19: warning: null character(s) ignored battle.c:10815:21: warning: null character(s) ignored battle.c:10815:23: warning: null character(s) ignored battle.c:10815:25: warning: null character(s) ignored battle.c:10815:27: warning: null character(s) ignored battle.c:10815:29: warning: null character(s) ignored battle.c:10815:31: warning: null character(s) ignored battle.c:10815:33: warning: null character(s) ignored battle.c:10815:35: warning: null character(s) ignored battle.c:10815:37: warning: null character(s) ignored battle.c:10815:39: warning: null character(s) ignored battle.c:10815:41: warning: null character(s) ignored battle.c:10815:43: warning: null character(s) ignored battle.c:10815:45: warning: null character(s) ignored battle.c:10815:47: warning: null character(s) ignored battle.c:10815:49: warning: null character(s) ignored battle.c:10815:51: warning: null character(s) ignored battle.c:10815:53: warning: null character(s) ignored battle.c:10815:55: warning: null character(s) ignored battle.c:10815:57: warning: null character(s) ignored battle.c:10815:59: warning: null character(s) ignored battle.c:10815:61: warning: null character(s) ignored battle.c:10815:63: warning: null character(s) ignored battle.c:10816:1: warning: null character(s) ignored battle.c:10817:1: warning: null character(s) ignored battle.c:10817:3: warning: null character(s) ignored battle.c:10818:1: warning: null character(s) ignored battle.c:10819:1: warning: null character(s) ignored battle.c:10819:2: warning: no newline at end of file battle.c:10819:2: warning: no newline at end of file make[1]: *** [obj_sql/battle.o] Error 1 make[1]: Leaving directory `/eathena/src/map' make: *** [map_sql] Error 2 [root@blitz-ro eathena]# [root@blitz-ro eathena]# in my windows vps. . . i can easily recompile my server but when i tried it in linux centos 5. . . this prob occurs. . . xD =( help me please... Quote
Dvrstle Posted May 29, 2012 Author Posted May 29, 2012 w8 . . . one comment about it is that. . . i should remove the carriage because itransfered my files from my windows vps. . . . so do you know how can to do it? Quote
Nameless2you Posted May 29, 2012 Posted May 29, 2012 just post the few lines of battle.c where the error comes from Quote
Dvrstle Posted May 29, 2012 Author Posted May 29, 2012 xD it was just like that from battle.c:01:17: warning: null character(s) ignored Quote
Asura Posted May 29, 2012 Posted May 29, 2012 Hi vlagtag12, I would recommend re-naming your current battle.c to battle.c.bk and then grab the battle.c from the SVN and retrying to compile. Remember to perform 'make clean' before 'make sql'. Quote
Dvrstle Posted May 29, 2012 Author Posted May 29, 2012 ok ill try it =) /include -c -o obj_sql/battle.o battle.c battle.c:1: error: expected identifier or \u2018(\u2019 before \u2018<\u2019 token battle.c:13: error: stray \u2018\342\u2019 in program battle.c:13: error: stray \u2018\200\u2019 in program battle.c:13: error: stray \u2018\223\u2019 in program battle.c:34: error: expected identifier or \u2018(\u2019 before \u2018)\u2019 token battle.c:35: error: expected identifier or \u2018(\u2019 before \u2018<\u2019 token battle.c:76: error: stray \u2018@\u2019 in program battle.c:130: error: stray \u2018\302\u2019 in program battle.c:130: error: stray \u2018\240\u2019 in program battle.c:162:68: error: too many decimal points in number battle.c:172:8: warning: no newline at end of file make[1]: *** [obj_sql/battle.o] Error 1 make[1]: Leaving directory `/eathena/src/map' make: *** [map_sql] Error 2 here's the error that ive got Quote
Brian Posted May 29, 2012 Posted May 29, 2012 Are you uploading the files to your server over FTP? Try using Binary transfer mode (instead of ASCII or Auto). Or try downloading the file directly from the SVN to your server: cd path/to/folder/src/map/ rm battle.c wget https://rathena.svn.sourceforge.net/svnroot/rathena/trunk/src/map/battle.c ok ill try it =) /include -c -o obj_sql/battle.o battle.c battle.c:13: error: stray \u2018\342\u2019 in program here's the error that ive got http://stackoverflow.com/questions/2340930/stray-342-in-c-program It looks like something (your text editor, or maybe the way you're transferring files) is converting neutral quotes to smart quotes. Quote
Dvrstle Posted May 30, 2012 Author Posted May 30, 2012 (edited) battle.c: In function \u2018battle_calc_weapon_attack\u2019: battle.c:1499: error: too few arguments to function \u2018unit_counttargeted\u2019 battle.c:1798: error: \u2018struct map_session_data\u2019 has no member named \u2018cart_weight_max\u2019 battle.c:2028: warning: implicit declaration of function \u2018RE_LVL_DMOD\u2019 battle.c:2143: error: \u2018SZ_SMALL\u2019 undeclared (first use in this function) battle.c:2143: error: (Each undeclared identifier is reported only once battle.c:2143: error: for each function it appears in.) battle.c:2144: error: \u2018SZ_MEDIUM\u2019 undeclared (first use in this function) battle.c:2145: error: \u2018SZ_BIG\u2019 undeclared (first use in this function) battle.c:2545: error: too few arguments to function \u2018unit_counttargeted\u2019 battle.c: In function \u2018battle_calc_magic_attack\u2019: battle.c:3362: error: \u2018SZ_SMALL\u2019 undeclared (first use in this function) battle.c:3365: error: \u2018SZ_BIG\u2019 undeclared (first use in this function) battle.c: In function \u2018battle_calc_misc_attack\u2019: battle.c:3930: warning: implicit declaration of function \u2018RE_LVL_MDMOD\u2019 battle.c:3942: warning: implicit declaration of function \u2018RE_LVL_TMDMOD\u2019 battle.c:3989: error: too few arguments to function \u2018unit_counttargeted\u2019 battle.c: At top level: battle.c:5327: error: \u2018struct Battle_Config\u2019 has no member named \u2018atcommand_suggestions_enabled\u2019 make[1]: *** [obj_sql/battle.o] Error 1 make[1]: Leaving directory `/eathena/src/map' make: *** [map_sql] Error 2 [root@blitz-ro eathena]# the error was changed to this when i tried to download the battle.c using my linux vps . . . . but how about my source mods in my battle.c.bk? its working now. . . i opened the battle.c in linux vps. . . .and i just copied the content in my windows. . . . Edited May 29, 2012 by vlatag12 Quote
Question
Dvrstle
in my windows vps. . . i can easily recompile my server but when i tried it in linux centos 5. . . this prob occurs. . . xD
=( help me please...
8 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.