Build successful via Windows, Error's on Linux.

Hey

I’ve recently moved my core from a Windows machine to a Linux (Debian 6) box, i’ve fixed most errors [were due to no .c_str()] but i’ve been having problems with a world chat script, i had it working on Windows, no errors all builds fine, but when i try to compile with it on Linux it gives me the following error :

[ 16%] Building CXX object src/server/game/CMakeFiles/game.dir/Handlers/ChatHandler.cpp.o
/root/zadeo-darksorrow/src/server/game/Handlers/ChatHandler.cpp: In member function ‘void WorldSession::HandleMessagechatOpcode(WorldPacket&)’:
/root/zadeo-darksorrow/src/server/game/Handlers/ChatHandler.cpp:251: error: ‘sHookMgr’ was not declared in this scope
compilation terminated due to -Wfatal-errors.
make[2]: *** [src/server/game/CMakeFiles/game.dir/Handlers/ChatHandler.cpp.o] Error 1
make[1]: *** [src/server/game/CMakeFiles/game.dir/all] Error 2

The script i’ve edited is ChatHandler @ line 370 (CHAT_MSG OFFICER to CHAT_MSG_RAID)

I added the following to the script :

case CHAT_MSG_OFFICER:
{
char message[1024];

		switch(GetPlayer()->GetSession()->GetSecurity())
		{
		    case SEC_PLAYER:
				snprintf(message, 1024, "[Player][%s]: %s", GetPlayer()->GetName().c_str(), msg.c_str());
				break;

		    case SEC_GAMEMASTER: // Moderator, same as above
				if (GetPlayer()->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GM))
				{
				snprintf(message, 1024, "[World Chat]|TInterfaceChatFrameUI-ChatIcon-Blizz.blp:0:2:0:-3|t [%s]: %s", GetPlayer()->GetName().c_str(), msg.c_str());
				}
				else
				snprintf(message, 1024, "[Mod][%s]: %s", GetPlayer()->GetName().c_str(), msg.c_str());
				break;

		    case SEC_ADMINISTRATOR: // Administrator, same as 1
				if (GetPlayer()->HasFlag(PLAYER_FLAGS, PLAYER_FLAGS_GM))
				{
				snprintf(message, 1024, "[World Chat]|TInterfaceChatFrameUI-ChatIcon-Blizz.blp:0:2:0:-3|t [%s]: %s", GetPlayer()->GetName().c_str(), msg.c_str());
				}
				else
				snprintf(message, 1024, "[Mod][%s]: %s", GetPlayer()->GetName().c_str(), msg.c_str());
				break;
		}

		sWorld->SendGlobalText(message, NULL);    
    } break;

Im fairly new to C++ / TrinityCore coding (Mainly Linux) and i cant really see whats causing the error

Any help is apreciated…

Found the problem… strey - from typing… ^^ can be closed.

The real issue is called microsoft, their compiler loves allowing broken things just to make it easier for retards to code /emoticons/default_tongue.png