代码: 全选
booker@ubuntu:~/ants-1.4$ make
cd src; \
make
make[1]: Entering directory `/home/booker/ants-1.4/src'
g++ ants.cpp -o ../ants `allegro-config --libs`
ants.cpp: In function ‘void Random_Level()’:
ants.cpp:619: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:619: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:646: warning: passing ‘double’ for argument 2 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:646: warning: passing ‘double’ for argument 3 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:646: warning: passing ‘double’ for argument 4 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:646: warning: passing ‘double’ for argument 5 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:647: warning: passing ‘double’ for argument 2 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:647: warning: passing ‘double’ for argument 3 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:647: warning: passing ‘double’ for argument 4 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:647: warning: passing ‘double’ for argument 5 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:670: warning: passing ‘double’ for argument 2 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:670: warning: passing ‘double’ for argument 3 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:670: warning: passing ‘double’ for argument 4 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:670: warning: passing ‘double’ for argument 5 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:671: warning: passing ‘double’ for argument 2 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:671: warning: passing ‘double’ for argument 3 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:671: warning: passing ‘double’ for argument 4 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:671: warning: passing ‘double’ for argument 5 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:672: warning: converting to ‘int’ from ‘double’
ants.cpp:698: warning: passing ‘double’ for argument 2 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:698: warning: passing ‘double’ for argument 3 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:698: warning: passing ‘double’ for argument 4 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:698: warning: passing ‘double’ for argument 5 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:699: warning: passing ‘double’ for argument 2 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:699: warning: passing ‘double’ for argument 3 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:699: warning: passing ‘double’ for argument 4 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp:699: warning: passing ‘double’ for argument 5 to ‘void rectfill(BITMAP*, int, int, int, int, int)’
ants.cpp: In function ‘void Load_Level()’:
ants.cpp:849: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:849: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:900: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:900: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1060: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1060: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp: In function ‘void Main_Menu()’:
ants.cpp:1188: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1188: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1239: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:1239: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:1240: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:1240: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:1241: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:1241: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:1242: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:1242: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants.cpp:1254: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1254: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp: In function ‘void Draw_GUI()’:
ants.cpp:1341: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1341: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1348: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1348: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1349: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1349: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1350: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1350: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1352: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1352: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp: In function ‘void Main_Game_Loop()’:
ants.cpp:1622: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1622: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1623: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1623: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1625: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1625: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1658: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1658: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1663: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1663: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1674: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1674: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1675: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1675: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1681: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1681: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1682: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1682: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants.cpp:1686: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp:1686: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants.cpp: In function ‘int main()’:
ants.cpp:1718: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:153)
ants.cpp:1718: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:153)
g++ ants_le.cpp -o ../ants_le `allegro-config --libs`
ants_le.cpp: In function ‘int main()’:
ants_le.cpp:73: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:153)
ants_le.cpp:73: warning: ‘text_mode’ is deprecated (declared at /usr/include/allegro/alcompat.h:153)
ants_le.cpp:326: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:326: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:335: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:335: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:336: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:336: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:337: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:337: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:339: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:339: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:340: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:340: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:341: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:341: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:342: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:342: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:343: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:343: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:344: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:344: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:345: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:345: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:453: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants_le.cpp:453: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants_le.cpp:466: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:466: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:467: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:467: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:468: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:468: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:469: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:469: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:472: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:472: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:473: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:473: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:474: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:474: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:475: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:475: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:476: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:476: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:477: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:477: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:478: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:478: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:479: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:479: warning: ‘textprintf_centre’ is deprecated (declared at /usr/include/allegro/alcompat.h:176)
ants_le.cpp:645: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:645: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:646: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:646: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:647: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:647: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:701: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants_le.cpp:701: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants_le.cpp:765: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:765: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:766: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:766: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:767: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:767: warning: ‘textprintf’ is deprecated (declared at /usr/include/allegro/alcompat.h:175)
ants_le.cpp:843: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
ants_le.cpp:843: warning: ‘yield_timeslice’ is deprecated (declared at /usr/include/allegro/alcompat.h:209)
make[1]: Leaving directory `/home/booker/ants-1.4/src'