Jump to content
  • 0

[One] Compiling Problem Cannot open file 'game.lib'


zarmaka

Question

I keep getting this error, anyone know?

When building "game" it doesn't seem to create game.lib at all.

This are all my errors:

Warning    1    warning C4244: 'initializing' : conversion from 'double' to 'const float', possible loss of data    c:\\users\\martin\\desktop\\server-master\\dep\\src\\g3dlite\\g3dmath.cpp    44    1    g3dlite

Warning    2    warning C4996: 'std::_Transform1': Function call with parameters that may be unsafe - this call relies on the caller to check that the passed values are correct. To disable this warning, use -D_SCL_SECURE_NO_WARNINGS. See documentation on how to use Visual C++ 'Checked Iterators' (..\\..\\src\\game\\AccountMgr.cpp)    F:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\include\\algorithm    1066    1    game

Error    3    error C2660: 'Player::GetDifficulty' : function does not take 1 arguments    C:\\Users\\Martin\\Desktop\\server-master\\src\\game\\CharacterHandler.cpp    604    1    game

Error    4    error C2660: 'Player::GetAreaTriggerLockStatus' : function does not take 3 arguments    C:\\Users\\Martin\\Desktop\\server-master\\src\\game\\CharacterHandler.cpp    604    1    game

Error    5    error C2660: 'Player::GetDifficulty' : function does not take 1 arguments    C:\\Users\\Martin\\Desktop\\server-master\\src\\game\\CharacterHandler.cpp    610    1    game

Error    6    error C2660: 'Player::GetAreaTriggerLockStatus' : function does not take 3 arguments    C:\\Users\\Martin\\Desktop\\server-master\\src\\game\\CharacterHandler.cpp    610    1    game

Warning    7    warning C4244: 'return' : conversion from 'std::streamsize' to 'size_t', possible loss of data    C:\\Users\\Martin\\Desktop\\server-master\\dep\\src\\gsoap\\stdsoap2.cpp    835    1    mangosd

Error    8    error LNK1104: cannot open file 'C:\\Users\\Martin\\Desktop\\server-master\\win\\VC110\\game__Win32_Debug\\game.lib'    C:\\Users\\Martin\\Desktop\\server-master\\win\\VC110\\LINK    mangosd

Link to comment
Share on other sites

12 answers to this question

Recommended Posts

I think im having the same issues as OP.

5>..\\..\\dep\\src\\g3dlite\\g3dmath.cpp(44): warning C4244: 'initializing' : conversion from 'double' to 'const float', possible loss of data

11>..\\..\\src\\game\\CharacterHandler.cpp(604): error C2660: 'Player::GetDifficulty' : function does not take 1 arguments
11>..\\..\\src\\game\\CharacterHandler.cpp(604): error C2660: 'Player::GetAreaTriggerLockStatus' : function does not take 3 arguments
11>..\\..\\src\\game\\CharacterHandler.cpp(610): error C2660: 'Player::GetDifficulty' : function does not take 1 arguments
11>..\\..\\src\\game\\CharacterHandler.cpp(610): error C2660: 'Player::GetAreaTriggerLockStatus' : function does not take 3 arguments

12>..\\..\\dep\\src\\gsoap\\stdsoap2.cpp(835): warning C4244: 'return' : conversion from 'std::streamsize' to 'size_t', possible loss of data

12>LINK : fatal error LNK1181: cannot open input file 'E:\\MaNGOS\\server\\server\\win\\VC100\\game__Win32_Release\\game.lib'
========== Build: 10 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========

tried first as I usually do, then more with guides but all failed :/

I have freshly installed SDK, c++ 2010 + rest shit cant remember all this late :D

platform win7 64bit

Link to comment
Share on other sites

commit: "[s1949] Do more checks if a Player can enter a map On Login"

broke the build !

As a temp fix, Change CharacterHandler.cpp:

Line 604

AreaLockStatus lockStatus = pCurrChar->GetAreaTriggerLockStatus(sObjectMgr.GetMapEntranceTrigger(pCurrChar->GetMapId()), pCurrChar->GetDifficulty(pCurrChar->GetMap()->IsRaid()), miscRequirement);

To:

AreaLockStatus lockStatus = pCurrChar->GetAreaTriggerLockStatus(sObjectMgr.GetMapEntranceTrigger(pCurrChar->GetMapId()),  miscRequirement);

and line 610

lockStatus = pCurrChar->GetAreaTriggerLockStatus(at, pCurrChar->GetDifficulty(pCurrChar->GetMap()->IsRaid()), miscRequirement);

To:

lockStatus = pCurrChar->GetAreaTriggerLockStatus(at,  miscRequirement);

This will be fixed during the next update

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use