<URL: http://bugs.freeciv.org/Ticket/Display.html?id=40325 >
Hello, I get a compilation error in client/editor.c when compiling a non gtk-2.0 client, because editgui_popup_properties() from gtk-2.0 is used in client/editor.c. Code in editor.c should really be common to all clients. Here is the error: gcc -Wall -Wpointer-arith -Wcast-align -Wmissing-prototypes -Wmissing-declarations -pthread -g -O2 -L/usr/local/lib -o civclient attribute.o citydlg_common.o cityrepdata.o civclient.o chatline_common.o connectdlg_common.o climisc.o climap.o clinet.o colors_common.o control.o editor.o ggzclient.o goto.o helpdata.o mapctrl_common.o mapview_common.o messagewin_common.o overview_common.o packhand.o packhand_gen.o plrdlg_common.o options.o repodlgs_common.o reqtree.o servers.o text.o themes_common.o tilespec.o audio.o audio_none.o ../utility/libcivutility.a ../common/libcivcommon.a ../common/aicore/libaicore.a agents/libagents.a gui-web/libguiclient.a ../utility/libcivutility.a ../common/libcivcommon.a ../common/aicore/libaicore.a agents/libagents.a gui-web/libguiclient.a -lm -lmicrohttpd -lggzmod -lbz2 -lz editor.o: In function `editor_mouse_button_press': /home/andreas/freeciv/backup/freeciv-svn16/client/editor.c:476: undefined reference to `editgui_popup_properties' editor.o: In function `editor_grab_applied_player': /home/andreas/freeciv/backup/freeciv-svn16/client/editor.c:313: undefined reference to `editgui_refresh' packhand.o: In function `update_client_state': /home/andreas/freeciv/backup/freeciv-svn16/client/packhand.c:423: undefined reference to `editgui_tileset_changed' packhand.o: In function `handle_player_info': /home/andreas/freeciv/backup/freeciv-svn16/client/packhand.c:1864: undefined reference to `editgui_refresh' collect2: ld returned 1 exit status make[3]: *** [civclient] Error 1 _______________________________________________ Freeciv-dev mailing list Freeciv-dev@gna.org https://mail.gna.org/listinfo/freeciv-dev