Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old May 8, 2009, 20: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
 


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 22:20
Bugs in angband-r1341 (nightly build) Mondkalb Vanilla 1 April 12, 2009 16:10
Where to get latest 309e(ef) source? awldune Vanilla 1 October 17, 2008 19:04
Thoughts on the latest version Conker Vanilla 0 October 11, 2008 01:04
[ToME] Notes on a thaumaturgist build Therem Harth AAR 0 January 19, 2008 23:08


All times are GMT +1. The time now is 20:24.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.