Hello every one, I have problem about compilation TrinityCore 6.x Opcodes.cpp and DB2Stores.cpp
My develop environment:
Visual Studio 2015, OpenSSL win64 1.0.1t 3 May 2016, boost_1_59_0 lib64-msvc-14.0
Now I am stuck on game.lib compilation. I have some log message about my Question list below.
------ Build started: Project: game, Configuration: Debug x64 ------
DB2Stores.cpp
Opcodes.cpp
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(256): error C2672: 'OpcodeTable::ValidateAndSetClientOpcode': no matching overloaded function found
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(256): error C2893: Failed to specialize function template 'void OpcodeTable::ValidateAndSetClientOpcode(OpcodeClient,const char *,SessionStatus,PacketProcessing)'
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(256): note: With the following template arguments:
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(256): note: 'Handler=void (WorldPackets::Channel::ChannelPlayerCommand &)'
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(256): note: 'HandlerFunction=void WorldSession::HandleChannelCommand<void Channel::Announce(const Player *)>(WorldPackets::Channel::ChannelPlayerCommand &)'
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(257): error C2672: 'OpcodeTable::ValidateAndSetClientOpcode': no matching overloaded function found
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(257): error C2893: Failed to specialize function template 'void OpcodeTable::ValidateAndSetClientOpcode(OpcodeClient,const char *,SessionStatus,PacketProcessing)'
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(257): note: With the following template arguments:
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(257): note: 'Handler=void (WorldPackets::Channel::ChannelPlayerCommand &)'
D:\TrinityCore-6.x\src\server\game\Server\Protocol\Opcodes.cpp(257): note: 'HandlerFunction=void WorldSession::HandleChannelPlayerCommand<void Channel::Ban(const Player *,const std::string &)>(WorldPackets::Channel::ChannelPlayerCommand &)'
..
..
D:\TrinityCore-6.x\src\server\game\DataStores\DB2Stores.cpp(512): error C2958: the left bracket '[' found at 'd:\trinitycore-6.x\src\server\game\datastores\db2stores.cpp(512)' was not matched correctly
D:\TrinityCore-6.x\src\server\game\DataStores\DB2Stores.cpp(512): error C2059: syntax error: '}'
D:\TrinityCore-6.x\src\server\game\DataStores\DB2Stores.cpp(512): error C2059: syntax error: ']'
------ Build started: Project: worldserver, Configuration: Debug x64 ------
LINK : fatal error LNK1181: cannot open input file '..\game\Debug\game.lib'
Does anyone have some suggestion for me?
thx
Opcodes.cpp
DB2Stores.cpp