Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old May 8, 2009, 19:29   #1
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
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.
PaulBlay is offline   Reply With Quote
Old May 9, 2009, 05:59   #2
LanceDiamond
Rookie
 
Join Date: Apr 2009
Posts: 13
LanceDiamond is on a distinguished road
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.
LanceDiamond is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile error - latest Vanilla Angband SVN PaulBlay Development 3 April 19, 2009 21:20
Bugs in angband-r1341 (nightly build) Mondkalb Vanilla 1 April 12, 2009 15:10
Where to get latest 309e(ef) source? awldune Vanilla 1 October 17, 2008 18:04
Thoughts on the latest version Conker Vanilla 0 October 11, 2008 00:04
[ToME] Notes on a thaumaturgist build Therem Harth AAR 0 January 19, 2008 22:08


All times are GMT +1. The time now is 04:51.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.