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:
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.
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
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.
Comment