Couldn't link wesnoth on VC9.0 SP1 -- Need advice.

Get help with compiling or installing the game, and discuss announcements of new official releases.

Moderator: Forum Moderators

Post Reply
The_Force
Posts: 2
Joined: November 24th, 2009, 12:17 am

Couldn't link wesnoth on VC9.0 SP1 -- Need advice.

Post by The_Force »

Hello everyone, I'm new, so please bear with me.
I just downloaded \trunk thru SVN and have been trying to build the wesnoth.sln.
Ran into some errors as shown below. Not sure what I need to be doing from this point, hope to get some advice here.
I did see something similar in another thread (date:yr2006), but that one is using VC++6.0, and either way I just couldn't figure out from there what needs to be done.

I'm using Visual C++ 2008 Express Edition with SP1 ,
the solution file from trunk\projectfiles\VC9\wesnoth.sln ,
where there are 3 projects inside this sln, I tried to build all of them in "Release Win32" configuration.

1) Project "wesnothlib" builds without error.
2) For Project "wesnothd" I get these errors:

Code: Select all

------ Build started: Project: wesnothd, Configuration: Release Win32 ------
Compiling...
mailer.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\src\server\jwsmtp\mailer.cpp': No such file or directory
compat.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\src\server\jwsmtp\compat.cpp': No such file or directory
base64.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\src\server\jwsmtp\base64.cpp': No such file or directory
user_handler.cpp
sample_user_handler.cpp
room_manager.cpp
room.cpp
player_network.cpp
mail.cpp
c1xx : fatal error C1083: Cannot open source file: '..\..\src\server\mail.cpp': No such file or directory
forum_user_handler.cpp
loadscreen_empty.cpp
Build log was saved at "file://c:\projects\wesnoth\trunk\projectfiles\VC9\Release\BuildLog-wesnothd.htm"
wesnothd - 4 error(s), 0 warning(s)
Q.) OK so I notice that those referenced folders are empty of source code files, which is how it is when I checked the SVN,
so everything here is expected right? Or am I missing something?


3. The part that we are interested in, building project "wesnoth" :
I couldn't get it to link because of these errors:

Code: Select all

------ Build started: Project: wesnoth, Configuration: Release Win32 ------
Linking...
wesnothlib.lib(tstring.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance
   Creating library C:\projects\wesnoth\trunk\projectfiles\VC9\Release\wesnoth.lib and object C:\projects\wesnoth\trunk\projectfiles\VC9\Release\wesnoth.exp
font.obj : error LNK2001: unresolved external symbol _FcConfigAppFontAddDir
font.obj : error LNK2001: unresolved external symbol _FcConfigGetCurrent
font.obj : error LNK2001: unresolved external symbol _FcConfigAppFontClear
game.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tmanager::~tmanager(void)" (??1tmanager@event@gui2@@QAE@XZ)
game.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tmanager::tmanager(void)" (??0tmanager@event@gui2@@QAE@XZ)
gamestatus.obj : error LNK2001: unresolved external symbol "public: __thiscall mp_game_settings::mp_game_settings(void)" (??0mp_game_settings@@QAE@XZ)
multiplayer.obj : error LNK2001: unresolved external symbol "public: __thiscall mp_game_settings::mp_game_settings(void)" (??0mp_game_settings@@QAE@XZ)
multiplayer_create.obj : error LNK2001: unresolved external symbol "public: __thiscall mp_game_settings::mp_game_settings(void)" (??0mp_game_settings@@QAE@XZ)
gamestatus.obj : error LNK2001: unresolved external symbol "public: __thiscall mp_game_settings::mp_game_settings(struct mp_game_settings const &)" (??0mp_game_settings@@QAE@ABU0@@Z)
multiplayer_connect.obj : error LNK2001: unresolved external symbol "public: __thiscall mp_game_settings::mp_game_settings(struct mp_game_settings const &)" (??0mp_game_settings@@QAE@ABU0@@Z)
gamestatus.obj : error LNK2001: unresolved external symbol "public: __thiscall mp_game_settings::mp_game_settings(class config const &)" (??0mp_game_settings@@QAE@ABVconfig@@@Z)
multiplayer_ui.obj : error LNK2001: unresolved external symbol "public: void __thiscall mp_game_settings::set_from_config(class config const &)" (?set_from_config@mp_game_settings@@QAEXABVconfig@@@Z)
show_dialog.obj : error LNK2001: unresolved external symbol "bool __cdecl gui2::is_in_dialog(void)" (?is_in_dialog@gui2@@YA_NXZ)
text_box.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
toggle_button.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
toggle_panel.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
window.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
button.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
scrollbar.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
scrollbar_container.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
text.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
slider.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
spacer.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
vertical_scrollbar.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
minimap.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
panel.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
password_box.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
scrollbar_panel.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
horizontal_scrollbar.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
image.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
label.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
menubar.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
toggle_button.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
toggle_panel.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
widget.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
window.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
scrollbar_container.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
stacked_widget.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
text.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
text_box.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
listbox.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
multi_page.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
scroll_label.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
scrollbar.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
button.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
control.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
generator.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
grid.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
slider.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
spacer.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
vertical_scrollbar.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
minimap.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
panel.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
password_box.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
scrollbar_panel.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
horizontal_scrollbar.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
image.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
label.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
menubar.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
toggle_button.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
toggle_panel.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
widget.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
scrollbar_container.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
stacked_widget.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
text.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
text_box.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
listbox.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
multi_page.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
scroll_label.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
scrollbar.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
button.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
control.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
generator.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
grid.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
widget.obj : error LNK2001: unresolved external symbol "public: bool __thiscall gui2::event::tdispatcher::fire(enum gui2::event::tevent,class gui2::twidget &,void *)" (?fire@tdispatcher@event@gui2@@QAE_NW4tevent@23@AAVtwidget@3@PAX@Z)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tmouse_motion::~tmouse_motion(void)" (??1tmouse_motion@event@gui2@@QAE@XZ)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdistributor::~tdistributor(void)" (??1tdistributor@event@gui2@@QAE@XZ)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tmouse_motion::capture_mouse(bool)" (?capture_mouse@tmouse_motion@event@gui2@@QAEX_N@Z)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdistributor::keyboard_capture(class gui2::twidget *)" (?keyboard_capture@tdistributor@event@gui2@@QAEXPAVtwidget@3@@Z)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdistributor::keyboard_add_to_chain(class gui2::twidget *)" (?keyboard_add_to_chain@tdistributor@event@gui2@@QAEXPAVtwidget@3@@Z)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdistributor::keyboard_remove_from_chain(class gui2::twidget *)" (?keyboard_remove_from_chain@tdistributor@event@gui2@@QAEXPAVtwidget@3@@Z)
window.obj : error LNK2001: unresolved external symbol "void __cdecl gui2::event::init_mouse_location(void)" (?init_mouse_location@event@gui2@@YAXXZ)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdispatcher::connect(void)" (?connect@tdispatcher@event@gui2@@QAEXXZ)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdistributor::tdistributor(class gui2::twidget &,enum gui2::event::tdispatcher::tposition)" (??0tdistributor@event@gui2@@QAE@AAVtwidget@2@W4tposition@tdispatcher@12@@Z)
C:\projects\wesnoth\trunk\projectfiles\VC9\Release\wesnoth.exe : fatal error LNK1120: 23 unresolved externals
Build log was saved at "file://c:\projects\wesnoth\trunk\projectfiles\VC9\Release\BuildLog-wesnoth.htm"
wesnoth - 86 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 1 up-to-date, 0 skipped ==========
As I did follow all the instructions that come with the VC9 projectfiles, I can't find what I might be doing wrong or missing out here.

Hope anyone can give me some insight and advice.. thank you.
ilor
Inactive Developer
Posts: 129
Joined: March 24th, 2008, 9:05 pm

Re: Couldn't link wesnoth on VC9.0 SP1 -- Need advice.

Post by ilor »

The VC9 projectfiles seem a bit undermaintained lately, partly because I've given up due to lack of time and build on windows solely using mingw/scons. In general, missing symbols in 'wesnoth' are likely due to some new files that got added to the source tree, but not to the project file.

The wesnothd error is probably due to some files being removed from the source tree and again, the vc9 project file wa not updated. Try removing them from the project.

I'll try to bring the vc9 project files back up to building state in trunk, but I can't promise I'll have the time.
AI
Developer
Posts: 2396
Joined: January 31st, 2008, 8:38 pm

Re: Couldn't link wesnoth on VC9.0 SP1 -- Need advice.

Post by AI »

I'm the one who removed the files and I completely forgot about the existence of other tools than autotools, cmake and scons.

I've just removed the files from the projectfiles for VC9, Dev-C++ and CodeBlocks too, so svn up to get the version that should work.
aoe123
Posts: 1
Joined: November 25th, 2009, 12:44 pm

Re: Couldn't link wesnoth on VC9.0 SP1 -- Need advice.

Post by aoe123 »

I also use Visual C++ 2008 Express Edition with SP1 and wesnoth-1.7.8,
after I removed the files from the projectfiles for VC9,I build Project "wesnothlib" and "wesnothd" without error.While buile "wesnoth" everything seem OK but still got the same linking error

Code: Select all

font.obj : error LNK2001: unresolved external symbol _FcConfigAppFontClear
font.obj : error LNK2001: unresolved external symbol _FcConfigAppFontAddDir
font.obj : error LNK2001: unresolved external symbol _FcConfigGetCurrent
game.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tmanager::~tmanager(void)" (??1tmanager@event@gui2@@QAE@XZ)
game.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tmanager::tmanager(void)" (??0tmanager@event@gui2@@QAE@XZ)
gamestatus.obj : error LNK2001: unresolved external symbol "public: __thiscall mp_game_settings::mp_game_settings(void)" (??0mp_game_settings@@QAE@XZ)
gamestatus.obj : error LNK2001: unresolved external symbol "public: __thiscall mp_game_settings::mp_game_settings(class config const &)" (??0mp_game_settings@@QAE@ABVconfig@@@Z)
gamestatus.obj : error LNK2001: unresolved external symbol "public: __thiscall mp_game_settings::mp_game_settings(struct mp_game_settings const &)" (??0mp_game_settings@@QAE@ABU0@@Z)
multiplayer_ui.obj : error LNK2001: unresolved external symbol "public: void __thiscall mp_game_settings::set_from_config(class config const &)" (?set_from_config@mp_game_settings@@QAEXABVconfig@@@Z)
show_dialog.obj : error LNK2001: unresolved external symbol "bool __cdecl gui2::is_in_dialog(void)" (?is_in_dialog@gui2@@YA_NXZ)
button.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
button.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
button.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
widget.obj : error LNK2001: unresolved external symbol "public: bool __thiscall gui2::event::tdispatcher::fire(enum gui2::event::tevent,class gui2::twidget &,void *)" (?fire@tdispatcher@event@gui2@@QAE_NW4tevent@23@AAVtwidget@3@PAX@Z)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdispatcher::connect(void)" (?connect@tdispatcher@event@gui2@@QAEXXZ)
window.obj : error LNK2001: unresolved external symbol "void __cdecl gui2::event::init_mouse_location(void)" (?init_mouse_location@event@gui2@@YAXXZ)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tmouse_motion::capture_mouse(bool)" (?capture_mouse@tmouse_motion@event@gui2@@QAEX_N@Z)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tmouse_motion::~tmouse_motion(void)" (??1tmouse_motion@event@gui2@@QAE@XZ)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdistributor::keyboard_remove_from_chain(class gui2::twidget *)" (?keyboard_remove_from_chain@tdistributor@event@gui2@@QAEXPAVtwidget@3@@Z)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdistributor::keyboard_add_to_chain(class gui2::twidget *)" (?keyboard_add_to_chain@tdistributor@event@gui2@@QAEXPAVtwidget@3@@Z)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdistributor::keyboard_capture(class gui2::twidget *)" (?keyboard_capture@tdistributor@event@gui2@@QAEXPAVtwidget@3@@Z)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdistributor::~tdistributor(void)" (??1tdistributor@event@gui2@@QAE@XZ)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdistributor::tdistributor(class gui2::twidget &,enum gui2::event::tdispatcher::tposition)" (??0tdistributor@event@gui2@@QAE@AAVtwidget@2@W4tposition@tdispatcher@12@@Z)
C:\projects\wesnoth\trunk\projectfiles\VC9\Release\wesnoth.exe : fatal error LNK1120: 23 unresolved externalsic: __thiscall mp_game_settings::mp_game_settings(struct mp_game_settings const &)" (??0mp_game_settings@@QAE@ABU0@@Z)
multiplayer_ui.obj : error LNK2001: unresolved external symbol "public: void __thiscall mp_game_settings::set_from_config(class config const &)" (?set_from_config@mp_game_settings@@QAEXABVconfig@@@Z)
show_dialog.obj : error LNK2001: unresolved external symbol "bool __cdecl gui2::is_in_dialog(void)" (?is_in_dialog@gui2@@YA_NXZ)
button.obj : error LNK2001: unresolved external symbol "class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl gui2::event::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > &,enum gui2::event::tevent)" (??6event@gui2@@YAAAV?$basic_ostream@DU?$char_traits@D@std@@@std@@AAV23@W4tevent@01@@Z)
button.obj : error LNK2001: unresolved external symbol "public: virtual __thiscall gui2::event::tdispatcher::~tdispatcher(void)" (??1tdispatcher@event@gui2@@UAE@XZ)
button.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdispatcher::tdispatcher(void)" (??0tdispatcher@event@gui2@@QAE@XZ)
widget.obj : error LNK2001: unresolved external symbol "public: bool __thiscall gui2::event::tdispatcher::fire(enum gui2::event::tevent,class gui2::twidget &,void *)" (?fire@tdispatcher@event@gui2@@QAE_NW4tevent@23@AAVtwidget@3@PAX@Z)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdispatcher::connect(void)" (?connect@tdispatcher@event@gui2@@QAEXXZ)
window.obj : error LNK2001: unresolved external symbol "void __cdecl gui2::event::init_mouse_location(void)" (?init_mouse_location@event@gui2@@YAXXZ)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tmouse_motion::capture_mouse(bool)" (?capture_mouse@tmouse_motion@event@gui2@@QAEX_N@Z)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tmouse_motion::~tmouse_motion(void)" (??1tmouse_motion@event@gui2@@QAE@XZ)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdistributor::keyboard_remove_from_chain(class gui2::twidget *)" (?keyboard_remove_from_chain@tdistributor@event@gui2@@QAEXPAVtwidget@3@@Z)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdistributor::keyboard_add_to_chain(class gui2::twidget *)" (?keyboard_add_to_chain@tdistributor@event@gui2@@QAEXPAVtwidget@3@@Z)
window.obj : error LNK2001: unresolved external symbol "public: void __thiscall gui2::event::tdistributor::keyboard_capture(class gui2::twidget *)" (?keyboard_capture@tdistributor@event@gui2@@QAEXPAVtwidget@3@@Z)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdistributor::~tdistributor(void)" (??1tdistributor@event@gui2@@QAE@XZ)
window.obj : error LNK2001: unresolved external symbol "public: __thiscall gui2::event::tdistributor::tdistributor(class gui2::twidget &,enum gui2::event::tdispatcher::tposition)" (??0tdistributor@event@gui2@@QAE@AAVtwidget@2@W4tposition@tdispatcher@12@@Z)
C:\projects\wesnoth\trunk\projectfiles\VC9\Release\wesnoth.exe : fatal error LNK1120: 23 unresolved externals
Yogibear
Retired Developer
Posts: 1086
Joined: September 16th, 2005, 5:44 am
Location: Hamburg, Germany

Re: Couldn't link wesnoth on VC9.0 SP1 -- Need advice.

Post by Yogibear »

As said before, the vs solution file is not properly maintained at the moment.

If you want to help yourself, do a file content search for the definitions of the missing methods (for example search for "tmanager"). You can use the visual studio search function to search in the "src" folder. Then examine the results for files not yet included in the project and add them (make sure you keep the folder structure matching between VS and Windows when doing that).
Smart persons learn out of their mistakes, wise persons learn out of others mistakes!
The_Force
Posts: 2
Joined: November 24th, 2009, 12:17 am

Re: Couldn't link wesnoth on VC9.0 SP1 -- Need advice.

Post by The_Force »

Thank you guys, your info helps. :)

Thanks for taking the time out to give us these advice! :)
ilor
Inactive Developer
Posts: 129
Joined: March 24th, 2008, 9:05 pm

Re: Couldn't link wesnoth on VC9.0 SP1 -- Need advice.

Post by ilor »

trunk VC9 project files should be up to date now
Post Reply