Author Topic: Can't compile r643  (Read 5905 times)

0 Members and 1 Guest are viewing this topic.

Offline THE FUTURE

  • Full Member
  • ***
  • Posts: 189
Can't compile r643
« on: September 10, 2011, 01:59:48 AM »
Am I doing something wrong or....?

running straight from the downloaded SVN folder
running vcxproj
MS Visual C++ 2010 Express
win 7 x64

The error message when trying to build:

Code: [Select]
1>------ Rebuild All started: Project: Whore Master, Configuration: Debug Win32 ------
1>  SubWCRev: '(...)\BrothelMaster'
1>  Last committed at revision 643
1>  Updated to revision 643
1>  cScriptUtils.cpp
1>  cLuaScript.cpp
1>cLuaScript.cpp(270): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>cLuaScript.cpp(628): warning C4800: 'int' : forcing value to bool 'true' or 'false' (performance warning)
1>  cLuaMenu.cpp
1>  WorkWhore.cpp
1>  WorkTorturer.cpp
1>  WorkStripper.cpp
1>  WorkSecurity.cpp
1>  WorkMatron.cpp
1>  WorkHall.cpp
1>  WorkFreetime.cpp
1>  WorkFluffer.cpp
1>  WorkExploreCatacombs.cpp
1>  WorkBrothelMassusse.cpp
1>  WorkBeastCare.cpp
1>  WorkBeastCapture.cpp
1>  WorkBar.cpp
1>  WorkAdvertising.cpp
1>  cWorkCleaning.cpp
1>  cJobManager.cpp
1>  cScreenTown.cpp
1>  Generating Code...
1>  Compiling...
1>  cScreenSlaveMarket.cpp
1>  cScreenPrison.cpp
1>  cScreenMayor.cpp
1>  cScreenItemManagement.cpp
1>  cScreenHouse.cpp
1>  cScreenGirlManagement.cpp
1>  cScreenGirlDetails.cpp
1>  cScreenGangs.cpp
1>  cScreenDungeon.cpp
1>  cScreenBuildingSetup.cpp
1>  cScreenBuildingManagement.cpp
1>  cScreenBank.cpp
1>  CSurface.cpp
1>  CRenderQue.cpp
1>  CFont.cpp
1>  cAnimatedSurface.cpp
1>  cTriggers.cpp
1>  cScripts.cpp
1>  cScriptManager.cpp
1>  CLog.cpp
1>  Generating Code...
1>  Compiling...
1>  cGameScript.cpp
1>  cEvents.cpp
1>  cRival.cpp
1>  cInventory.cpp
1>  cGirls.cpp
1>  cGangs.cpp
1>  cCustomers.cpp
1>  cBuilding.cpp
1>  cBrothel.cpp
1>cBrothel.cpp(3627): warning C4819: The file contains a character that cannot be represented in the current code page (932). Save the file in Unicode format to prevent data loss
1>  CResourceManager.cpp
1>  CGraphics.cpp
1>  CGameObject.cpp
1>  cColor.cpp
1>  XmlUtil.cpp
1>  tinyxmlparser.cpp
1>  tinyxmlerror.cpp
1>  tinyxml.cpp
1>  tinystr.cpp
1>  strnatcmp.cpp
1>  sFacilityList.cpp
1>  Generating Code...
1>  Compiling...
1>  sFacility.cpp
1>  sConfig.cpp
1>  main.cpp
1>  GameFlags.cpp
1>  FileList.cpp
1>  DirPath.cpp
1>  cTraits.cpp
1>  cTrainable.cpp
1>  cTariff.cpp
1>  cRng.cpp
1>  cNameList.cpp
1>  cGold.cpp
1>  cGetStringScreenManager.cpp
1>  InterfaceProcesses.cpp
1>  InterfaceGlobals.cpp
1>  cWindowManager.cpp
1>  cSlider.cpp
1>  cMessageBox.cpp
1>  cScrollBar.cpp
1>  cPlayer.cpp
1>  Generating Code...
1>  Compiling...
1>  cListBox.cpp
1>  cInterfaceWindow.cpp
1>  cImageItem.cpp
1>  cGirlTorture.cpp
1>  cGirlGangFight.cpp
1>  cEditBox.cpp
1>  cDungeon.cpp
1>  cChoiceMessage.cpp
1>  cCheckBox.cpp
1>  cButton.cpp
1>  Generating Code...
1>  lzio.c
1>  lvm.c
1>  lundump.c
1>  ltm.c
1>  ltablib.c
1>  ltable.c
1>  lstrlib.c
1>  lstring.c
1>  lstate.c
1>  lparser.c
1>  loslib.c
1>  lopcodes.c
1>  lobject.c
1>  loadlib.c
1>  lmem.c
1>  lmathlib.c
1>  llex.c
1>  liolib.c
1>  linit.c
1>  lgc.c
1>  Generating Code...
1>  Compiling...
1>  lfunc.c
1>  ldump.c
1>  ldo.c
1>  ldebug.c
1>  ldblib.c
1>  lcode.c
1>  lbaselib.c
1>  lauxlib.c
1>  lapi.c
1>  Generating Code...
1>cPlayer.obj : error LNK2019: unresolved external symbol "class TiXmlElement * __cdecl SaveSkillsXML(class TiXmlElement *,unsigned char * const,int * const,int * const)" (?SaveSkillsXML@@YAPAVTiXmlElement@@PAV1@QAEQAH2@Z) referenced in function "public: class TiXmlElement * __thiscall cPlayer::SavePlayerXML(class TiXmlElement *)" (?SavePlayerXML@cPlayer@@QAEPAVTiXmlElement@@PAV2@@Z)
1>cGangs.obj : error LNK2001: unresolved external symbol "class TiXmlElement * __cdecl SaveSkillsXML(class TiXmlElement *,unsigned char * const,int * const,int * const)" (?SaveSkillsXML@@YAPAVTiXmlElement@@PAV1@QAEQAH2@Z)
1>cGirls.obj : error LNK2001: unresolved external symbol "class TiXmlElement * __cdecl SaveSkillsXML(class TiXmlElement *,unsigned char * const,int * const,int * const)" (?SaveSkillsXML@@YAPAVTiXmlElement@@PAV1@QAEQAH2@Z)
1>cPlayer.obj : error LNK2019: unresolved external symbol "class TiXmlElement * __cdecl SaveStatsXML(class TiXmlElement *,unsigned char * const,int * const,int * const)" (?SaveStatsXML@@YAPAVTiXmlElement@@PAV1@QAEQAH2@Z) referenced in function "public: class TiXmlElement * __thiscall cPlayer::SavePlayerXML(class TiXmlElement *)" (?SavePlayerXML@cPlayer@@QAEPAVTiXmlElement@@PAV2@@Z)
1>cGangs.obj : error LNK2001: unresolved external symbol "class TiXmlElement * __cdecl SaveStatsXML(class TiXmlElement *,unsigned char * const,int * const,int * const)" (?SaveStatsXML@@YAPAVTiXmlElement@@PAV1@QAEQAH2@Z)
1>cGirls.obj : error LNK2001: unresolved external symbol "class TiXmlElement * __cdecl SaveStatsXML(class TiXmlElement *,unsigned char * const,int * const,int * const)" (?SaveStatsXML@@YAPAVTiXmlElement@@PAV1@QAEQAH2@Z)
1>cPlayer.obj : error LNK2019: unresolved external symbol "bool __cdecl LoadSkillsXML(class TiXmlHandle,unsigned char * const,int * const,int * const)" (?LoadSkillsXML@@YA_NVTiXmlHandle@@QAEQAH2@Z) referenced in function "public: bool __thiscall cPlayer::LoadPlayerXML(class TiXmlHandle)" (?LoadPlayerXML@cPlayer@@QAE_NVTiXmlHandle@@@Z)
1>cGangs.obj : error LNK2001: unresolved external symbol "bool __cdecl LoadSkillsXML(class TiXmlHandle,unsigned char * const,int * const,int * const)" (?LoadSkillsXML@@YA_NVTiXmlHandle@@QAEQAH2@Z)
1>cGirls.obj : error LNK2001: unresolved external symbol "bool __cdecl LoadSkillsXML(class TiXmlHandle,unsigned char * const,int * const,int * const)" (?LoadSkillsXML@@YA_NVTiXmlHandle@@QAEQAH2@Z)
1>cPlayer.obj : error LNK2019: unresolved external symbol "bool __cdecl LoadStatsXML(class TiXmlHandle,unsigned char * const,int * const,int * const)" (?LoadStatsXML@@YA_NVTiXmlHandle@@QAEQAH2@Z) referenced in function "public: bool __thiscall cPlayer::LoadPlayerXML(class TiXmlHandle)" (?LoadPlayerXML@cPlayer@@QAE_NVTiXmlHandle@@@Z)
1>cGangs.obj : error LNK2001: unresolved external symbol "bool __cdecl LoadStatsXML(class TiXmlHandle,unsigned char * const,int * const,int * const)" (?LoadStatsXML@@YA_NVTiXmlHandle@@QAEQAH2@Z)
1>cGirls.obj : error LNK2001: unresolved external symbol "bool __cdecl LoadStatsXML(class TiXmlHandle,unsigned char * const,int * const,int * const)" (?LoadStatsXML@@YA_NVTiXmlHandle@@QAEQAH2@Z)
1>cBrothel.obj : error LNK2019: unresolved external symbol "bool __cdecl LoadInventoryXML(class TiXmlHandle,struct sInventoryItem * * const,int &,unsigned char * const,unsigned char * const)" (?LoadInventoryXML@@YA_NVTiXmlHandle@@QAPAUsInventoryItem@@AAHQAE3@Z) referenced in function "public: bool __thiscall cBrothelManager::LoadDataXML(class TiXmlHandle)" (?LoadDataXML@cBrothelManager@@QAE_NVTiXmlHandle@@@Z)
1>cGirls.obj : error LNK2001: unresolved external symbol "bool __cdecl LoadInventoryXML(class TiXmlHandle,struct sInventoryItem * * const,int &,unsigned char * const,unsigned char * const)" (?LoadInventoryXML@@YA_NVTiXmlHandle@@QAPAUsInventoryItem@@AAHQAE3@Z)
1>cBrothel.obj : error LNK2019: unresolved external symbol "class TiXmlElement * __cdecl SaveInventoryXML(class TiXmlElement *,struct sInventoryItem * * const,int,unsigned char * const,unsigned char * const)" (?SaveInventoryXML@@YAPAVTiXmlElement@@PAV1@QAPAUsInventoryItem@@HQAE2@Z) referenced in function "public: class TiXmlElement * __thiscall cBrothelManager::SaveDataXML(class TiXmlElement *)" (?SaveDataXML@cBrothelManager@@QAEPAVTiXmlElement@@PAV2@@Z)
1>cGirls.obj : error LNK2001: unresolved external symbol "class TiXmlElement * __cdecl SaveInventoryXML(class TiXmlElement *,struct sInventoryItem * * const,int,unsigned char * const,unsigned char * const)" (?SaveInventoryXML@@YAPAVTiXmlElement@@PAV1@QAPAUsInventoryItem@@HQAE2@Z)
1>cGirls.obj : error LNK2019: unresolved external symbol "bool __cdecl LoadActionsXML(class TiXmlHandle,int * const)" (?LoadActionsXML@@YA_NVTiXmlHandle@@QAH@Z) referenced in function "public: bool __thiscall sGirl::LoadGirlXML(class TiXmlHandle)" (?LoadGirlXML@sGirl@@QAE_NVTiXmlHandle@@@Z)
1>cGirls.obj : error LNK2019: unresolved external symbol "bool __cdecl LoadTraitsXML(class TiXmlHandle,unsigned char &,struct sTrait * * const,unsigned char * const)" (?LoadTraitsXML@@YA_NVTiXmlHandle@@AAEQAPAUsTrait@@QAE@Z) referenced in function "public: bool __thiscall sGirl::LoadGirlXML(class TiXmlHandle)" (?LoadGirlXML@sGirl@@QAE_NVTiXmlHandle@@@Z)
1>cGirls.obj : error LNK2019: unresolved external symbol "class TiXmlElement * __cdecl SaveActionsXML(class TiXmlElement *,int * const)" (?SaveActionsXML@@YAPAVTiXmlElement@@PAV1@QAH@Z) referenced in function "public: class TiXmlElement * __thiscall sGirl::SaveGirlXML(class TiXmlElement *)" (?SaveGirlXML@sGirl@@QAEPAVTiXmlElement@@PAV2@@Z)
1>cGirls.obj : error LNK2019: unresolved external symbol "class TiXmlElement * __cdecl SaveTraitsXML(class TiXmlElement *,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,int,struct sTrait * * const,unsigned char * const)" (?SaveTraitsXML@@YAPAVTiXmlElement@@PAV1@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@HQAPAUsTrait@@QAE@Z) referenced in function "public: class TiXmlElement * __thiscall sGirl::SaveGirlXML(class TiXmlElement *)" (?SaveGirlXML@sGirl@@QAEPAVTiXmlElement@@PAV2@@Z)
1>C:\Downloads\tethman\svn\trunk\BrothelMaster\Debug\Whore Master.exe : fatal error LNK1120: 10 unresolved externals
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

I'm reasonably sure I resolved the unicode error in cBrothel, but I don't understand the stuff at the end.
« Last Edit: September 10, 2011, 06:16:50 AM by THE FUTURE »
This is the last week of bug fixes. Barring anything catastrophic, development of a "sequel" to WM EX begins next week. If there is a major bug that hasn't been addressed, say so now or you're going to have to wait quite a long time for it to be fixed.

Offline GonDra

  • Full Member
  • ***
  • Posts: 154
Re: Can't compile r643
« Reply #1 on: September 10, 2011, 05:35:47 AM »
I had the same problem yesterday, but could fix it with deleting and reloading the trunk.
After that i was able to compile r643 in Visual c++ express 2010.
(I still have problems similar to those if I try using Anon21 changes to the source.)

Offline THE FUTURE

  • Full Member
  • ***
  • Posts: 189
Re: Can't compile r643
« Reply #2 on: September 10, 2011, 11:10:49 AM »
Sorry, I meant VC+++ 2010 as my program. You deleted and reloaded the trunk? If you mean redownload it from the svn, well I tried that, but it's not working for me.
This is the last week of bug fixes. Barring anything catastrophic, development of a "sequel" to WM EX begins next week. If there is a major bug that hasn't been addressed, say so now or you're going to have to wait quite a long time for it to be fixed.

Offline GonDra

  • Full Member
  • ***
  • Posts: 154
Re: Can't compile r643
« Reply #3 on: September 10, 2011, 12:07:20 PM »
I deleted my local copy of the trunk and then downloaded it again and for whatever reason it did work after that for me.

Sorry that I can't help you - I had hoped it would work for you too.

Offline dqhx

  • Newbie
  • *
  • Posts: 9
Re: Can't compile r643
« Reply #4 on: September 10, 2011, 02:31:49 PM »
You're getting the linking errors because you don't have XmlMisc.cpp added to the project and it isn't getting compiled, simply adding it to the Misc folder should fix them. As for why that is and why you have some weird character in cBrothel.cpp i don't know my version works fine.


Offline THE FUTURE

  • Full Member
  • ***
  • Posts: 189
Re: Can't compile r643
« Reply #5 on: September 11, 2011, 02:59:10 AM »
Yeah, that did it. Thanks! I didn't modify anything before trying to load the project and compiling from a cleanly downloaded svn, so that's odd.
This is the last week of bug fixes. Barring anything catastrophic, development of a "sequel" to WM EX begins next week. If there is a major bug that hasn't been addressed, say so now or you're going to have to wait quite a long time for it to be fixed.

Offline Anon21

  • Full Member
  • ***
  • Posts: 244
Re: Can't compile r643
« Reply #6 on: September 19, 2011, 04:33:48 AM »
As for why that is and why you have some weird character in cBrothel.cpp i don't know my version works fine.
There is a weird character in cBrothel.cpp. WinMerge (free proggy) complains about it every time I open the file. It doesn't seem to affect compiling, though. The character is located directly before STAT_HOUSE in the following code:

Code: [Select]
*    Uses scaling formula in the form of
 *        bonus = (60  STAT_HOUSE) / div

It can be removed without issue, as it is inside a compiler comment so does not affect the way the code runs at all.

I attach a 'fixed' version of cBrothel.cpp from r643

Offline THE FUTURE

  • Full Member
  • ***
  • Posts: 189
Re: Can't compile r643
« Reply #7 on: September 21, 2011, 05:10:07 AM »
Anyone else having trouble making new custom girls work on old saves with the official build? That, or I managed to break something by accident.

It looks like the official build registers the new files (.girlsx, probably .rgirlsx too) that are added, but doesn't actually add the included girls into the save. To add a new custom girl, it seems necessary to restart a new game.
This is the last week of bug fixes. Barring anything catastrophic, development of a "sequel" to WM EX begins next week. If there is a major bug that hasn't been addressed, say so now or you're going to have to wait quite a long time for it to be fixed.

Offline Anon21

  • Full Member
  • ***
  • Posts: 244
Re: Can't compile r643
« Reply #8 on: September 22, 2011, 01:14:29 PM »
Anyone else having trouble making new custom girls work on old saves with the official build?
I totally can't remember if I did something about that in my modded version or not. :-P

BTW, could you put up a save file from the official version r643? (e.g. as an attachment to a post or something).  I want to see if I can get my patched version to load official saves.

Offline THE FUTURE

  • Full Member
  • ***
  • Posts: 189
Re: Can't compile r643
« Reply #9 on: September 22, 2011, 04:37:12 PM »
Nope, sorry. I'm not using either the current official version or your patched version.
This is the last week of bug fixes. Barring anything catastrophic, development of a "sequel" to WM EX begins next week. If there is a major bug that hasn't been addressed, say so now or you're going to have to wait quite a long time for it to be fixed.