issue during linking for 0.4 (test version)
Moderator: Forum Moderators
Forum rules
Before reporting issues in this section, you must read the following topic:
Before reporting issues in this section, you must read the following topic:
issue during linking for 0.4 (test version)
Hello,
I have an issue during the building of Wesnoth 0.4 : the link fails.
gcc 3.3.2
libsdl 1.2.5
libsdl-ttf 2.0.6
libfreetype6 2.1.4
alex@debian:~/games/wesnoth/wesnoth-0.3.10$ make
gcc -lstdc++ `sdl-config --cflags` `freetype-config --cflags` -o wesnoth actions.o ai.o ai_attack.o ai_move.o config.o dialogs.o display.o font.o game.o game_config.o game_events.o gamestatus.o intro.o key.o language.o map.o menu.o multiplayer.o pathfind.o playlevel.o playturn.o replay.o sdl_utils.o team.o terrain.o unit.o unit_types.o video.o widgets/button.o widgets/textbox.o `sdl-config --libs` -lSDL_ttf `freetype-config --libs`
menu.o(.text+0x604): In function `gui::show_dialog(display&, SDL_Surface*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, gui::DIALOG_TYPE, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const*, std::vector<unit, std::allocator<unit> > const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
: référence indéfinie vers « gui::textbox::textbox[in-charge](display&, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)»
menu.o(.text+0x671): In function `gui::show_dialog(display&, SDL_Surface*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, gui::DIALOG_TYPE, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const*, std::vector<unit, std::allocator<unit> > const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
: référence indéfinie vers « gui::textbox::width() const»
...
Thanks for your help.
Balin
I have an issue during the building of Wesnoth 0.4 : the link fails.
gcc 3.3.2
libsdl 1.2.5
libsdl-ttf 2.0.6
libfreetype6 2.1.4
alex@debian:~/games/wesnoth/wesnoth-0.3.10$ make
gcc -lstdc++ `sdl-config --cflags` `freetype-config --cflags` -o wesnoth actions.o ai.o ai_attack.o ai_move.o config.o dialogs.o display.o font.o game.o game_config.o game_events.o gamestatus.o intro.o key.o language.o map.o menu.o multiplayer.o pathfind.o playlevel.o playturn.o replay.o sdl_utils.o team.o terrain.o unit.o unit_types.o video.o widgets/button.o widgets/textbox.o `sdl-config --libs` -lSDL_ttf `freetype-config --libs`
menu.o(.text+0x604): In function `gui::show_dialog(display&, SDL_Surface*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, gui::DIALOG_TYPE, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const*, std::vector<unit, std::allocator<unit> > const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
: référence indéfinie vers « gui::textbox::textbox[in-charge](display&, int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)»
menu.o(.text+0x671): In function `gui::show_dialog(display&, SDL_Surface*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, gui::DIALOG_TYPE, std::vector<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const*, std::vector<unit, std::allocator<unit> > const*, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::basic_string<char, std::char_traits<char>, std::allocator<char> >*)':
: référence indéfinie vers « gui::textbox::width() const»
...
Thanks for your help.
Balin
This is not Wesnoth 0.4. Download the latest release.alex@debian:~/games/wesnoth/wesnoth-0.3.10$
Anyway, you only need to remove the objects from the widgets/ directory.
Code: Select all
cd widgets/
rm *.o