• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[TheForgottenServer] Compiling Error

Delirium

OTLand veteran
Staff member
Global Moderator
Joined
May 28, 2007
Messages
3,368
Solutions
1
Reaction score
297
Location
Athens, Greece
Code:
protocol80.cpp: In member function `void Protocol80::cancelRuleViolation(std::string)':
protocol80.cpp:2991: error: no matching function for call to `Player::sendNetworkMessage(NetworkMessage*&)'
player.h:510: note: candidates are: void Player::sendNetworkMessage(NetworkMessage&)

networkmessage.h: In member function `void Protocol80::speakToReporter(std::string, std::string)':
networkmessage.h:50: error: `void NetworkMessage::Reset()' is protected
protocol80.cpp:3056: error: within this context

protocol80.cpp:3069: error: no matching function for call to `Player::sendNetworkMessage(NetworkMessage*&)'
player.h:510: note: candidates are: void Player::sendNetworkMessage(NetworkMessage&)
networkmessage.h:50: error: `void NetworkMessage::Reset()' is protected
protocol80.cpp:3070: error: within this context

networkmessage.h: In member function `void Protocol80::speakToGamemaster(std::string)':
networkmessage.h:50: error: `void NetworkMessage::Reset()' is protected
protocol80.cpp:3095: error: within this context

make.exe: *** [protocol80.o] Error 1

Execution terminated


Any idea?
 
When it says that they're protected, it means you've declared them (in the header file) in the private section, not the public section, and that you're calling this function from a file that is public. Switching them to public should fix the problems.
 
@Up downloaded the new sources now i got this:


game.cpp: In member function `bool Game::playerOpenChannel(uint32_t, uint16_t)':
game.cpp:1611: error: no matching function for call to `Protocol80::sendRuleViolationChannel()'
protocol80.h:63: note: candidates are: void Protocol80::sendRuleViolationChannel(Player*)

make.exe: *** [game.o] Error 1

Execution terminated
 
Back
Top