The forum is being replaced with new software. Please use the replacement hosted at https://forum.angband.live/ in the meantime. These forums will stay open until migrating old topics can be achieved, though posting will eventually be locked. Thankyou for your patience.

Problem with VC++ compile of latest Vanilla build

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • PaulBlay
    Knight
    • Jan 2009
    • 607

    Problem with VC++ compile of latest Vanilla build

    I came across a similar problem before, but this time I'm working with a clean copy of the Vanilla Angband code.

    Basically I get linker errors from the 'util.c' in 'player' unless I rename that file. I have checked that the problem is repeatable.

    Errors:

    Code:
    1>birth.obj : error LNK2019: unresolved external symbol _modify_stat_value referenced in function _get_stats
    1>calcs.obj : error LNK2001: unresolved external symbol _modify_stat_value
    Work around.

    1. Remove 'util.c' from the Player filter in the VC++ solution.
    2. Rename 'util.c' to 'p-util.c' in the player subdirectory.
    3. Add 'p-util.c' to the Player filter in the VC++ solution.

    Now compiles without error.

    If you reverse the process then the errors reappear.

    (e.g.
    1. Remove 'p-util.c' from the Player filter in the VC++ solution.
    2. Rename 'p-util.c' to 'util.c' in the player subdirectory.
    3. Add 'util.c' to the Player filter in the VC++ solution.

    Compile error generated as above.)

    I would suggest that a "p-" isn't really that big a thing.
    Currently turning (Angband) Japanese.
  • LanceDiamond
    Rookie
    • Apr 2009
    • 13

    #2
    Had the same problem, did the same thing, arrived at almost the same filename.

    Renamed \src\player\util.c to \src\player\putil.c

    Dunno why VC is apparently tripped up by the dupe util.c and some other compiler isn't but the fix didn't seem like a big deal to me either.

    Comment

    Working...
    😀
    😂
    🥰
    😘
    🤢
    😎
    😞
    😡
    👍
    👎
    MMOMBuy POE 2 Currency