ike3 / mangosbot

This is a modification of MaNGOS (Zero, One, R2, Trinity) server which brings a number of bots online and available for any player. Also allows you to use your account/guild characters as bots.
http://ike3.github.io/mangosbot-docs/
GNU General Public License v2.0
185 stars 79 forks source link

Some compiler warning from vs2013 #23

Open shenhuyong opened 10 years ago

shenhuyong commented 10 years ago

ConsumableCategory.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library WarriorTriggers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library WarriorMultipliers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library GenericWarriorNonCombatStrategy.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library WarlockMultipliers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library WarlockActions.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library Value.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library ShamanMultipliers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library ShamanActions.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library RogueTriggers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library RogueMultipliers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library RogueActions.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library PriestTriggers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library PriestMultipliers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library PaladinMultipliers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library PaladinActions.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library Multiplier.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library MageMultipliers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library HunterMultipliers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library DruidTriggers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library DruidMultipliers.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library NonCombatActions.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library GenericActions.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library ActionBasket.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library

krlloyd commented 10 years ago

I am able to build with VS2013. Can you please give the exacts steps to reproduce, from cmake to build.

If you want you can send me a zipped build directory to kelly.lloyd@gmail.com.

ghost commented 9 years ago

I had no warnings compiling the source from November 10, 2014 (current release) in a Win32 (x86) configuration. To me, the above warnings look like they are caused by an incomplete VS2013 or CMake configuration or setup. If the warnings can't be reproduced, I suggest that this issue should be closed.

ghost commented 9 years ago

(edited) OK, so I took a new look at the error messages posted by @shenhuyong:

ConsumableCategory.obj :              warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
WarriorTriggers.obj :                 warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
WarriorMultipliers.obj :              warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
GenericWarriorNonCombatStrategy.obj : warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
WarlockMultipliers.obj :              warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
WarlockActions.obj :                  warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
Value.obj :                           warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
ShamanMultipliers.obj :               warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
ShamanActions.obj :                   warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
RogueTriggers.obj :                   warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
RogueMultipliers.obj :                warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
RogueActions.obj :                    warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
PriestTriggers.obj :                  warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
PriestMultipliers.obj :               warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
PaladinMultipliers.obj :              warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
PaladinActions.obj :                  warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
Multiplier.obj :                      warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
MageMultipliers.obj :                 warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
HunterMultipliers.obj :               warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
DruidTriggers.obj :                   warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
DruidMultipliers.obj :                warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
NonCombatActions.obj :                warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
GenericActions.obj :                  warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library
ActionBasket.obj :                    warning LNK4221: This object file does not define any previously undefined public symbols, so it will not be used by any link operation that consumes this library

You can safely ignore the error messages for now, it will take some programming skills to know how to get rid of these warnings. It could be caused by external symbol settings, but I don't know if this is the case here. You should definitely try again with an updated VS2013 (update 4) and a new CMake installation. To be on the safe side, try reinstalling MySQL as well. :+1:

Edit: added spaces to make the paste more readable (warning message identical on all lines).

ghost commented 9 years ago

Update 2: I got those same warnings as above + 56 extra warnings containing messages like: '<' : signed/unsigned mismatch and 'Unit *' : forcing value to bool 'true' or 'false' (performance warning) after merging ike3's source with new TrinityCore 3.3.5 source, then CMake + compile in VS2013. Could this be your issue here? Have you tried again, using only ike3's ordinary source without changes?

ghost commented 9 years ago

I recommend closing this issue, it is outdated and it will not be very useful to add more comments here.