PDA

View Full Version : VC++ compiler help wanted.


PaulBlay
April 24, 2009, 15:49
As most of you probably know I'm working on a variant of my own (more accurately, working on emulating someone else's variant).

For some reason I am now getting lots of "unresolved external symbol" errors that only show up when compiling in VC++, not when using Dev-C++. The 'problem' revision is 112, it compiled correctly in 111.

http://svn.sourceforge.jp/view/?root=angband65

Full details of the settings I use to compile can be found here:

http://roguebasin.roguelikedevelopment.org/index.php?title=Angband/65\Compiling#With_Visual_C.2B.2B_.28IDE.29

(Except that I have configuration as 'debug' and don't use /DNDEBUG).

I would be grateful if anyone would try downloading revision 112 and seeing if they can work out what's causing the trouble (obviously I will also be trying to do that ...).

PaulBlay
April 24, 2009, 16:03
Well, as I sort of half expected, reverting to revision 111 didn't allow me to compile it. :(

So the problem probably isn't the code (which had only rather innocuous changes made recently) but something with VC++. I'm going to reboot in case that helps.

RogerN
April 24, 2009, 16:06
I just downloaded the whole ball of wax. Everything compiles fine on my machine.

1) What version of VC++ are you using? I'm using the 2005 version.
2) What unresolved symbols are you seeing?

PaulBlay
April 24, 2009, 16:10
I just downloaded the whole ball of wax. Everything compiles fine on my machine.

1) What version of VC++ are you using? I'm using the 2005 version.
2008

2) What unresolved symbols are you seeing?
All of them. :D

OK, seriously.

1>util.obj : error LNK2005: _modify_stat_value already defined in plyr-util.obj
1>xtra2.obj : error LNK2001: unresolved external symbol _msg_print
1>wiz-spoil.obj : error LNK2001: unresolved external symbol _msg_print
1>wiz-stats.obj : error LNK2001: unresolved external symbol _msg_print
1>wizard.obj : error LNK2001: unresolved external symbol _msg_print
1>x-spell.obj : error LNK2019: unresolved external symbol _msg_print referenced in function _get_spell_info
1>spells2.obj : error LNK2001: unresolved external symbol _msg_print
1>store.obj : error LNK2001: unresolved external symbol _msg_print
1>timed.obj : error LNK2001: unresolved external symbol _msg_print
1>trap.obj : error LNK2001: unresolved external symbol _msg_print
1>prefs.obj : error LNK2001: unresolved external symbol _msg_print
1>randart.obj : error LNK2001: unresolved external symbol _msg_print
1>score.obj : error LNK2001: unresolved external symbol _msg_print
1>spells1.obj : error LNK2001: unresolved external symbol _msg_print
1>melee2.obj : error LNK2001: unresolved external symbol _msg_print
1>monster2.obj : error LNK2001: unresolved external symbol _msg_print
1>obj-ui.obj : error LNK2001: unresolved external symbol _msg_print
1>obj-util.obj : error LNK2001: unresolved external symbol _msg_print
1>effects.obj : error LNK2001: unresolved external symbol _msg_print
1>generate.obj : error LNK2001: unresolved external symbol _msg_print
1>identify.obj : error LNK2001: unresolved external symbol _msg_print
1>melee1.obj : error LNK2001: unresolved external symbol _msg_print
1>cmd5.obj : error LNK2001: unresolved external symbol _msg_print
1>cmd6.obj : error LNK2001: unresolved external symbol _msg_print
1>death.obj : error LNK2001: unresolved external symbol _msg_print
1>dungeon.obj : error LNK2001: unresolved external symbol _msg_print
1>cmd1.obj : error LNK2001: unresolved external symbol _msg_print
1>cmd2.obj : error LNK2001: unresolved external symbol _msg_print
1>cmd3.obj : error LNK2001: unresolved external symbol _msg_print
1>cmd4.obj : error LNK2001: unresolved external symbol _msg_print
1>attack.obj : error LNK2001: unresolved external symbol _msg_print
1>calcs.obj : error LNK2001: unresolved external symbol _msg_print
1>cmd-obj.obj : error LNK2001: unresolved external symbol _msg_print
1>cmd0.obj : error LNK2001: unresolved external symbol _msg_print
1>wizard.obj : error LNK2001: unresolved external symbol _msg_format
1>spells1.obj : error LNK2019: unresolved external symbol _msg_format referenced in function _teleport_player_level
1>spells2.obj : error LNK2001: unresolved external symbol _msg_format
1>squelch.obj : error LNK2001: unresolved external symbol _msg_format
1>store.obj : error LNK2001: unresolved external symbol _msg_format
1>obj-util.obj : error LNK2001: unresolved external symbol _msg_format
1>prefs.obj : error LNK2001: unresolved external symbol _msg_format
1>randart.obj : error LNK2001: unresolved external symbol _msg_format
1>savefile.obj : error LNK2001: unresolved external symbol _msg_format
1>melee1.obj : error LNK2001: unresolved external symbol _msg_format
1>melee2.obj : error LNK2001: unresolved external symbol _msg_format
1>monster2.obj : error LNK2001: unresolved external symbol _msg_format
1>obj-make.obj : error LNK2001: unresolved external symbol _msg_format
1>generate.obj : error LNK2001: unresolved external symbol _msg_format
1>identify.obj : error LNK2001: unresolved external symbol _msg_format
1>init1.obj : error LNK2001: unresolved external symbol _msg_format
1>init2.obj : error LNK2001: unresolved external symbol _msg_format
1>cmd6.obj : error LNK2001: unresolved external symbol _msg_format
1>dungeon.obj : error LNK2001: unresolved external symbol _msg_format
1>effects.obj : error LNK2001: unresolved external symbol _msg_format
1>files.obj : error LNK2001: unresolved external symbol _msg_format
1>cmd2.obj : error LNK2001: unresolved external symbol _msg_format
1>cmd3.obj : error LNK2001: unresolved external symbol _msg_format
1>cmd4.obj : error LNK2001: unresolved external symbol _msg_format
1>cmd5.obj : error LNK2001: unresolved external symbol _msg_format
1>attack.obj : error LNK2001: unresolved external symbol _msg_format
1>calcs.obj : error LNK2001: unresolved external symbol _msg_format
1>cmd-obj.obj : error LNK2001: unresolved external symbol _msg_format
1>cmd1.obj : error LNK2001: unresolved external symbol _msg_format
1>spells1.obj : error LNK2019: unresolved external symbol _message_format referenced in function _take_hit
1>spells2.obj : error LNK2001: unresolved external symbol _message_format
1>squelch.obj : error LNK2001: unresolved external symbol _message_format
1>xtra2.obj : error LNK2001: unresolved external symbol _message_format
1>identify.obj : error LNK2001: unresolved external symbol _message_format
1>melee1.obj : error LNK2001: unresolved external symbol _message_format
1>melee2.obj : error LNK2001: unresolved external symbol _message_format
1>monster2.obj : error LNK2001: unresolved external symbol _message_format
1>attack.obj : error LNK2001: unresolved external symbol _message_format
1>cmd2.obj : error LNK2001: unresolved external symbol _message_format
1>cmd3.obj : error LNK2001: unresolved external symbol _message_format
1>cmd5.obj : error LNK2001: unresolved external symbol _message_format
1>trap.obj : error LNK2001: unresolved external symbol _sound
1>obj-util.obj : error LNK2001: unresolved external symbol _sound
1>spells1.obj : error LNK2001: unresolved external symbol _sound
1>spells2.obj : error LNK2019: unresolved external symbol _sound referenced in function _do_dec_stat
1>timed.obj : error LNK2001: unresolved external symbol _sound
1>cmd6.obj : error LNK2001: unresolved external symbol _sound
1>dungeon.obj : error LNK2001: unresolved external symbol _sound
1>effects.obj : error LNK2001: unresolved external symbol _sound
1>melee2.obj : error LNK2001: unresolved external symbol _sound
1>attack.obj : error LNK2001: unresolved external symbol _sound
1>cmd2.obj : error LNK2001: unresolved external symbol _sound
1>cmd3.obj : error LNK2001: unresolved external symbol _sound
1>cmd5.obj : error LNK2001: unresolved external symbol _sound
1>cmd1.obj : error LNK2001: unresolved external symbol _int2s16b
1>cmd2.obj : error LNK2019: unresolved external symbol _int2s16b referenced in function _do_cmd_open
1>cmd3.obj : error LNK2001: unresolved external symbol _int2s16b
1>init1.obj : error LNK2001: unresolved external symbol _int2s16b
1>attack.obj : error LNK2001: unresolved external symbol _int2s16b
1>birth.obj : error LNK2001: unresolved external symbol _int2s16b
1>calcs.obj : error LNK2001: unresolved external symbol _int2s16b
1>cave.obj : error LNK2001: unresolved external symbol _int2s16b
1>store.obj : error LNK2001: unresolved external symbol _screen_load
1>target.obj : error LNK2001: unresolved external symbol _screen_load
1>wiz-spoil.obj : error LNK2001: unresolved external symbol _screen_load
1>wizard.obj : error LNK2001: unresolved external symbol _screen_load
1>obj-ui.obj : error LNK2001: unresolved external symbol _screen_load
1>score.obj : error LNK2001: unresolved external symbol _screen_load
1>spells2.obj : error LNK2001: unresolved external symbol _screen_load
1>squelch.obj : error LNK2001: unresolved external symbol _screen_load
1>cmd5.obj : error LNK2019: unresolved external symbol _screen_load referenced in function _get_spell
1>death.obj : error LNK2001: unresolved external symbol _screen_load
1>files.obj : error LNK2001: unresolved external symbol _screen_load
1>history.obj : error LNK2001: unresolved external symbol _screen_load
1>cmd0.obj : error LNK2001: unresolved external symbol _screen_load
1>cmd1.obj : error LNK2001: unresolved external symbol _screen_load
1>cmd3.obj : error LNK2001: unresolved external symbol _screen_load
1>cmd4.obj : error LNK2001: unresolved external symbol _screen_load
1>birth.obj : error LNK2001: unresolved external symbol _screen_load
1>cave.obj : error LNK2001: unresolved external symbol _screen_load
1>cmd-know.obj : error LNK2001: unresolved external symbol _screen_load
1>cmd-obj.obj : error LNK2001: unresolved external symbol _screen_load
1>store.obj : error LNK2001: unresolved external symbol _screen_save
1>target.obj : error LNK2001: unresolved external symbol _screen_save
1>wiz-spoil.obj : error LNK2001: unresolved external symbol _screen_save
1>wizard.obj : error LNK2001: unresolved external symbol _screen_save
1>obj-ui.obj : error LNK2001: unresolved external symbol _screen_save
1>score.obj : error LNK2001: unresolved external symbol _screen_save
1>spells2.obj : error LNK2001: unresolved external symbol _screen_save
1>squelch.obj : error LNK2001: unresolved external symbol _screen_save
1>cmd5.obj : error LNK2019: unresolved external symbol _screen_save referenced in function _get_spell
1>death.obj : error LNK2001: unresolved external symbol _screen_save
1>files.obj : error LNK2001: unresolved external symbol _screen_save
1>history.obj : error LNK2001: unresolved external symbol _screen_save
1>cmd0.obj : error LNK2001: unresolved external symbol _screen_save
1>cmd1.obj : error LNK2001: unresolved external symbol _screen_save
1>cmd3.obj : error LNK2001: unresolved external symbol _screen_save
1>cmd4.obj : error LNK2001: unresolved external symbol _screen_save
1>birth.obj : error LNK2001: unresolved external symbol _screen_save
1>cave.obj : error LNK2001: unresolved external symbol _screen_save
1>cmd-know.obj : error LNK2001: unresolved external symbol _screen_save
1>cmd-obj.obj : error LNK2001: unresolved external symbol _screen_save
1>target.obj : error LNK2001: unresolved external symbol _bell
1>ui-birth.obj : error LNK2001: unresolved external symbol _bell
1>wiz-spoil.obj : error LNK2001: unresolved external symbol _bell
1>xtra2.obj : error LNK2001: unresolved external symbol _bell
1>files.obj : error LNK2001: unresolved external symbol _bell
1>obj-ui.obj : error LNK2019: unresolved external symbol _bell referenced in function _display_inven
1>pathfind.obj : error LNK2001: unresolved external symbol _bell
1>spells1.obj : error LNK2001: unresolved external symbol _bell
1>button.obj : error LNK2001: unresolved external symbol _bell
1>cmd3.obj : error LNK2001: unresolved external symbol _bell
1>cmd4.obj : error LNK2001: unresolved external symbol _bell
1>cmd5.obj : error LNK2001: unresolved external symbol _bell
1>store.obj : error LNK2001: unresolved external symbol _c_put_str
1>ui-birth.obj : error LNK2001: unresolved external symbol _c_put_str
1>xtra3.obj : error LNK2001: unresolved external symbol _c_put_str
1>history.obj : error LNK2001: unresolved external symbol _c_put_str
1>obj-ui.obj : error LNK2001: unresolved external symbol _c_put_str
1>score.obj : error LNK2019: unresolved external symbol _c_put_str referenced in function _highscore_write
1>squelch.obj : error LNK2001: unresolved external symbol _c_put_str
1>button.obj : error LNK2001: unresolved external symbol _c_put_str
1>cmd-know.obj : error LNK2001: unresolved external symbol _c_put_str
1>death.obj : error LNK2001: unresolved external symbol _c_put_str
1>files.obj : error LNK2001: unresolved external symbol _c_put_str
1>spells2.obj : error LNK2001: unresolved external symbol _anykey
1>store.obj : error LNK2001: unresolved external symbol _anykey
1>cmd5.obj : error LNK2001: unresolved external symbol _anykey
1>death.obj : error LNK2019: unresolved external symbol _anykey referenced in function _print_tomb
1>monster2.obj : error LNK2001: unresolved external symbol _anykey
1>obj-util.obj : error LNK2001: unresolved external symbol _anykey
1>cave.obj : error LNK2001: unresolved external symbol _anykey
1>cmd-know.obj : error LNK2001: unresolved external symbol _anykey
1>cmd-obj.obj : error LNK2001: unresolved external symbol _anykey
1>cmd0.obj : error LNK2001: unresolved external symbol _anykey
1>store.obj : error LNK2019: unresolved external symbol _put_str referenced in function _store_carry
1>ui-birth.obj : error LNK2001: unresolved external symbol _put_str
1>xtra3.obj : error LNK2001: unresolved external symbol _put_str
1>death.obj : error LNK2001: unresolved external symbol _put_str
1>files.obj : error LNK2001: unresolved external symbol _put_str
1>obj-ui.obj : error LNK2001: unresolved external symbol _put_str
1>score.obj : error LNK2001: unresolved external symbol _put_str
1>cave.obj : error LNK2001: unresolved external symbol _put_str
1>cmd-know.obj : error LNK2001: unresolved external symbol _put_str
1>cmd3.obj : error LNK2001: unresolved external symbol _put_str
1>cmd5.obj : error LNK2001: unresolved external symbol _put_str
1>wizard.obj : error LNK2019: unresolved external symbol _prt referenced in function _do_cmd_wiz_change_aux
1>xtra2.obj : error LNK2001: unresolved external symbol _prt
1>xtra3.obj : error LNK2001: unresolved external symbol _prt
1>store.obj : error LNK2001: unresolved external symbol _prt
1>target.obj : error LNK2001: unresolved external symbol _prt
1>ui-birth.obj : error LNK2001: unresolved external symbol _prt
1>wiz-spoil.obj : error LNK2001: unresolved external symbol _prt
1>savefile.obj : error LNK2001: unresolved external symbol _prt
1>score.obj : error LNK2001: unresolved external symbol _prt
1>spells2.obj : error LNK2001: unresolved external symbol _prt
1>squelch.obj : error LNK2001: unresolved external symbol _prt
1>main-win.obj : error LNK2001: unresolved external symbol _prt
1>monster2.obj : error LNK2001: unresolved external symbol _prt
1>obj-ui.obj : error LNK2001: unresolved external symbol _prt
1>obj-util.obj : error LNK2001: unresolved external symbol _prt
1>dungeon.obj : error LNK2001: unresolved external symbol _prt
1>files.obj : error LNK2001: unresolved external symbol _prt
1>history.obj : error LNK2001: unresolved external symbol _prt
1>load-old.obj : error LNK2001: unresolved external symbol _prt
1>cmd3.obj : error LNK2001: unresolved external symbol _prt
1>cmd4.obj : error LNK2001: unresolved external symbol _prt
1>cmd5.obj : error LNK2001: unresolved external symbol _prt
1>death.obj : error LNK2001: unresolved external symbol _prt
1>cave.obj : error LNK2001: unresolved external symbol _prt
1>cmd-know.obj : error LNK2001: unresolved external symbol _prt
1>cmd0.obj : error LNK2001: unresolved external symbol _prt
1>cmd1.obj : error LNK2001: unresolved external symbol _prt
1>spells2.obj : error LNK2019: unresolved external symbol _flush referenced in function _self_knowledge
1>wizard.obj : error LNK2001: unresolved external symbol _flush
1>cmd6.obj : error LNK2001: unresolved external symbol _flush
1>death.obj : error LNK2001: unresolved external symbol _flush
1>dungeon.obj : error LNK2001: unresolved external symbol _flush
1>files.obj : error LNK2001: unresolved external symbol _flush
1>cave.obj : error LNK2001: unresolved external symbol _flush
1>cmd2.obj : error LNK2001: unresolved external symbol _flush
1>cmd4.obj : error LNK2001: unresolved external symbol _flush
1>cmd5.obj : error LNK2001: unresolved external symbol _flush
1>target.obj : error LNK2001: unresolved external symbol _inkey_ex
1>ui-birth.obj : error LNK2001: unresolved external symbol _inkey_ex
1>ui-event.obj : error LNK2001: unresolved external symbol _inkey_ex
1>xtra2.obj : error LNK2001: unresolved external symbol _inkey_ex
1>cmd-know.obj : error LNK2019: unresolved external symbol _inkey_ex referenced in function _display_knowledge
1>cmd3.obj : error LNK2001: unresolved external symbol _inkey_ex
1>cmd4.obj : error LNK2001: unresolved external symbol _inkey_ex
1>obj-ui.obj : error LNK2001: unresolved external symbol _inkey_ex
1>monster2.obj : error LNK2001: unresolved external symbol _c_prt
1>obj-util.obj : error LNK2019: unresolved external symbol _c_prt referenced in function _drop_near
1>squelch.obj : error LNK2001: unresolved external symbol _c_prt
1>cmd-know.obj : error LNK2001: unresolved external symbol _c_prt
1>cmd4.obj : error LNK2001: unresolved external symbol _c_prt
1>cmd5.obj : error LNK2001: unresolved external symbol _c_prt
1>death.obj : error LNK2001: unresolved external symbol _c_prt
1>monster1.obj : error LNK2019: unresolved external symbol _text_out_c referenced in function _describe_monster_attack
1>obj-info.obj : error LNK2001: unresolved external symbol _text_out_c
1>squelch.obj : error LNK2001: unresolved external symbol _text_out_c
1>store.obj : error LNK2001: unresolved external symbol _text_out_c
1>cmd-know.obj : error LNK2001: unresolved external symbol _text_out_c
1>cmd-obj.obj : error LNK2001: unresolved external symbol _text_out_c
1>cmd5.obj : error LNK2001: unresolved external symbol _text_out_c
1>death.obj : error LNK2001: unresolved external symbol _text_out_c
1>store.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>ui-birth.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>xtra3.obj : error LNK2019: unresolved external symbol _text_out_to_screen referenced in function _update_messages_subwindow
1>files.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>monster1.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>monster2.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>squelch.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>cmd-know.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>cmd-obj.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>cmd5.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>death.obj : error LNK2001: unresolved external symbol _text_out_to_screen
1>wiz-spoil.obj : error LNK2001: unresolved external symbol _text_out
1>xtra3.obj : error LNK2001: unresolved external symbol _text_out
1>monster1.obj : error LNK2001: unresolved external symbol _text_out
1>obj-info.obj : error LNK2001: unresolved external symbol _text_out
1>squelch.obj : error LNK2001: unresolved external symbol _text_out
1>store.obj : error LNK2019: unresolved external symbol _text_out referenced in function _store_redraw
1>cmd-know.obj : error LNK2001: unresolved external symbol _text_out
1>cmd-obj.obj : error LNK2001: unresolved external symbol _text_out
1>cmd5.obj : error LNK2001: unresolved external symbol _text_out
1>death.obj : error LNK2001: unresolved external symbol _text_out
1>cmd-know.obj : error LNK2019: unresolved external symbol _askfor_aux referenced in function _o_xtra_act
1>cmd4.obj : error LNK2001: unresolved external symbol _askfor_aux
1>files.obj : error LNK2001: unresolved external symbol _askfor_aux
1>wizard.obj : error LNK2001: unresolved external symbol _askfor_aux
1>obj-util.obj : error LNK2001: unresolved external symbol _clear_from
1>squelch.obj : error LNK2001: unresolved external symbol _clear_from
1>store.obj : error LNK2001: unresolved external symbol _clear_from
1>ui-birth.obj : error LNK2001: unresolved external symbol _clear_from
1>cmd-know.obj : error LNK2019: unresolved external symbol _clear_from referenced in function _do_cmd_knowledge
1>cmd4.obj : error LNK2001: unresolved external symbol _clear_from
1>files.obj : error LNK2001: unresolved external symbol _clear_from
1>monster2.obj : error LNK2001: unresolved external symbol _clear_from
1>cmd-obj.obj : error LNK2019: unresolved external symbol _get_string referenced in function _obj_inscribe
1>cmd2.obj : error LNK2001: unresolved external symbol _get_string
1>cmd4.obj : error LNK2001: unresolved external symbol _get_string
1>wizard.obj : error LNK2001: unresolved external symbol _get_string
1>store.obj : error LNK2019: unresolved external symbol _message_flush referenced in function _store_create_random
1>wiz-spoil.obj : error LNK2001: unresolved external symbol _message_flush
1>wizard.obj : error LNK2001: unresolved external symbol _message_flush
1>xtra2.obj : error LNK2001: unresolved external symbol _message_flush
1>randart.obj : error LNK2001: unresolved external symbol _message_flush
1>savefile.obj : error LNK2001: unresolved external symbol _message_flush
1>score.obj : error LNK2001: unresolved external symbol _message_flush
1>spells1.obj : error LNK2001: unresolved external symbol _message_flush
1>init2.obj : error LNK2001: unresolved external symbol _message_flush
1>monster1.obj : error LNK2001: unresolved external symbol _message_flush
1>obj-ui.obj : error LNK2001: unresolved external symbol _message_flush
1>prefs.obj : error LNK2001: unresolved external symbol _message_flush
1>death.obj : error LNK2001: unresolved external symbol _message_flush
1>dungeon.obj : error LNK2001: unresolved external symbol _message_flush
1>effects.obj : error LNK2001: unresolved external symbol _message_flush
1>files.obj : error LNK2001: unresolved external symbol _message_flush
1>cmd-obj.obj : error LNK2001: unresolved external symbol _message_flush
1>cmd0.obj : error LNK2001: unresolved external symbol _message_flush
1>cmd1.obj : error LNK2001: unresolved external symbol _message_flush
1>cmd4.obj : error LNK2001: unresolved external symbol _message_flush
1>spells2.obj : error LNK2019: unresolved external symbol _get_check referenced in function _self_knowledge
1>wizard.obj : error LNK2001: unresolved external symbol _get_check
1>death.obj : error LNK2001: unresolved external symbol _get_check
1>dungeon.obj : error LNK2001: unresolved external symbol _get_check
1>files.obj : error LNK2001: unresolved external symbol _get_check
1>obj-ui.obj : error LNK2001: unresolved external symbol _get_check
1>cmd-obj.obj : error LNK2001: unresolved external symbol _get_check
1>cmd0.obj : error LNK2001: unresolved external symbol _get_check
1>cmd3.obj : error LNK2001: unresolved external symbol _get_check
1>cmd5.obj : error LNK2001: unresolved external symbol _get_check
1>cmd-obj.obj : error LNK2019: unresolved external symbol _get_quantity referenced in function _obj_drop
1>cmd3.obj : error LNK2001: unresolved external symbol _get_quantity
1>store.obj : error LNK2001: unresolved external symbol _get_quantity
1>cmd0.obj : error LNK2019: unresolved external symbol _repeat_check referenced in function _process_command
1>cmd0.obj : error LNK2019: unresolved external symbol _request_command referenced in function _process_command
1>ui-birth.obj : error LNK2001: unresolved external symbol _inkey
1>wiz-spoil.obj : error LNK2001: unresolved external symbol _inkey
1>wizard.obj : error LNK2001: unresolved external symbol _inkey
1>files.obj : error LNK2001: unresolved external symbol _inkey
1>history.obj : error LNK2001: unresolved external symbol _inkey
1>score.obj : error LNK2001: unresolved external symbol _inkey
1>store.obj : error LNK2001: unresolved external symbol _inkey
1>cmd1.obj : error LNK2019: unresolved external symbol _inkey referenced in function _py_pickup
1>cmd3.obj : error LNK2001: unresolved external symbol _inkey
1>cmd4.obj : error LNK2001: unresolved external symbol _inkey
1>dungeon.obj : error LNK2001: unresolved external symbol _inkey
1>spells1.obj : error LNK2001: unresolved external symbol _message
1>store.obj : error LNK2001: unresolved external symbol _message
1>timed.obj : error LNK2001: unresolved external symbol _message
1>cmd1.obj : error LNK2019: unresolved external symbol _message referenced in function _py_pickup_gold
1>cmd2.obj : error LNK2001: unresolved external symbol _message
1>cmd6.obj : error LNK2001: unresolved external symbol _message
1>effects.obj : error LNK2001: unresolved external symbol _message
1>cmd3.obj : error LNK2019: unresolved external symbol _get_com referenced in function _do_cmd_locate
1>cmd5.obj : error LNK2001: unresolved external symbol _get_com
1>spells2.obj : error LNK2001: unresolved external symbol _get_com
1>wizard.obj : error LNK2001: unresolved external symbol _get_com
1>cmd4.obj : error LNK2001: unresolved external symbol _get_file
1>death.obj : error LNK2001: unresolved external symbol _get_file
1>cmd4.obj : error LNK2019: unresolved external symbol _get_name referenced in function _do_cmd_change_name
1>ui-birth.obj : error LNK2001: unresolved external symbol _get_name
1>cmd4.obj : error LNK2019: unresolved external symbol _macro_add referenced in function _do_cmd_macros
1>prefs.obj : error LNK2001: unresolved external symbol _macro_add
1>cmd4.obj : error LNK2019: unresolved external symbol _text_to_ascii referenced in function _do_cmd_macros
1>prefs.obj : error LNK2001: unresolved external symbol _text_to_ascii
1>cmd4.obj : error LNK2019: unresolved external symbol _macro_find_exact referenced in function _do_cmd_macros
1>cmd4.obj : error LNK2019: unresolved external symbol _ascii_to_text referenced in function _do_cmd_macros
1>prefs.obj : error LNK2001: unresolved external symbol _ascii_to_text
1>cmd4.obj : error LNK2019: unresolved external symbol _askfor_aux_keypress referenced in function _askfor_aux_numbers
1>cmd5.obj : error LNK2019: unresolved external symbol _repeat_push referenced in function _get_spell
1>obj-ui.obj : error LNK2001: unresolved external symbol _repeat_push
1>xtra2.obj : error LNK2001: unresolved external symbol _repeat_push
1>cmd5.obj : error LNK2019: unresolved external symbol _repeat_clear referenced in function _get_spell
1>obj-ui.obj : error LNK2001: unresolved external symbol _repeat_clear
1>xtra2.obj : error LNK2001: unresolved external symbol _repeat_clear
1>cmd5.obj : error LNK2019: unresolved external symbol _repeat_pull referenced in function _get_spell
1>obj-ui.obj : error LNK2001: unresolved external symbol _repeat_pull
1>xtra2.obj : error LNK2001: unresolved external symbol _repeat_pull
1>death.obj : error LNK2019: unresolved external symbol _pause_line referenced in function _display_winner
1>files.obj : error LNK2019: unresolved external symbol _text_out_to_file referenced in function _file_character
1>wiz-spoil.obj : error LNK2001: unresolved external symbol _text_out_to_file
1>init1.obj : error LNK2019: unresolved external symbol _color_char_to_attr referenced in function _parse_f_info
1>prefs.obj : error LNK2001: unresolved external symbol _color_char_to_attr
1>init1.obj : error LNK2019: unresolved external symbol _color_text_to_attr referenced in function _parse_f_info
1>init2.obj : error LNK2019: unresolved external symbol _macro_init referenced in function _init_other
1>init2.obj : error LNK2019: unresolved external symbol _macro_trigger_free referenced in function _cleanup_angband
1>prefs.obj : error LNK2001: unresolved external symbol _macro_trigger_free
1>init2.obj : error LNK2019: unresolved external symbol _macro_free referenced in function _cleanup_angband
1>main-win.obj : error LNK2019: unresolved external symbol _build_gamma_table referenced in function _init_windows
1>main-win.obj : error LNK2001: unresolved external symbol _gamma_table
1>target.obj : error LNK2019: unresolved external symbol _is_a_vowel referenced in function _target_set_interactive_aux
1>monster2.obj : error LNK2001: unresolved external symbol _is_a_vowel
1>obj-desc.obj : error LNK2001: unresolved external symbol _is_a_vowel
1>obj-info.obj : error LNK2001: unresolved external symbol _is_a_vowel
1>randname.obj : error LNK2001: unresolved external symbol _is_a_vowel
1>ui-birth.obj : error LNK2019: unresolved external symbol _text_out_e referenced in function _print_menu_instructions
1>xtra3.obj : error LNK2001: unresolved external symbol _text_out_e
1>wiz-spoil.obj : error LNK2019: unresolved external symbol _attr_to_text referenced in function _spoil_mon_desc
1>xtra2.obj : error LNK2019: unresolved external symbol _get_com_ex referenced in function _get_aim_dir

PaulBlay
April 24, 2009, 16:13
Actually it appears to be everything from util.c (the big one). I think this might just be related to having two files with the same name. :rolleyes:

I shall try renaming a few files and seeing what happens.

takkaria
April 24, 2009, 16:13
Your problem starts at the line:

1>util.obj : error LNK2005: _modify_stat_value already defined in plyr-util.obj

And the rest of the errors are link errors with util.obj, since it contains the msg_* and text_out_* functions (and everything else). Have you duplicated modify_stat_value between the two files (player/plyr-util.c and util.c)? Have you tweaked anything around there recently?

PaulBlay
April 24, 2009, 16:29
Have you tweaked anything around there recently?

Ah, you're quite right. Although it wasn't recently. The problem appears to involve a 'zombie' file that should have been deleted and removed from the project but appears to have returned stumbling from the grave (probably due to carelessness in copying files some time ago. Not sure why it didn't get me before.