What's new

Linux Compile

Bodeguero

Gold Supporter
Veteran Member
30
2016
0
Location
Brazil
Well,

I would like a hint on how to fix these errors in compiling under Linux:

Error: 01

Code:
src/server/game/Battlegrounds/Battleground.cpp:692:109: fatal error: 
      format specifies type 'int' but the argument has type 'const ObjectGuid'
      [-Wformat]
  ..."Battleground::RewardReputationToTeam: %i not found!", itr->first);
                                            ~                   ^~~~
src/common/Logging/Log.h:207:56: note: 
      expanded from macro 'TC_LOG_ERROR'
    TC_LOG_MESSAGE_BODY(filterType, LOG_LEVEL_ERROR, VA_ARGS__)
                                                       ^
src/common/Logging/Log.h:178:32: note: 
      expanded from macro 'TC_LOG_MESSAGE_BODY'
                    check_args(__VA_ARGS__);                            \

Error 02:

Code:
src/server/game/Entities/Player/Player.cpp:4849:11: fatal error: 
      unused variable 'race' [-Wunused-variable]
    uint8 race       = (uint8) (_uf);
                               ^

The strangest of all, Windows compiles and works perfectly! But on Linux I only have these two errors! So far I have not found anyone who can solve them!

If anyone can solve this or give me a hint how to solve these 02 errors I will be very grateful!
 
Top