-
[Help]Few Problems
Okay When i try to compile Game Server
it ends with Linking...
then says this
FlyFFServer.obj : error LNK2019: unresolved external symbol "public: __thiscall Acceptor::Acceptor(int,class Selector *,class AbstractPlayerFactory *)" (??0Acceptor@@QAE@HPAVSelector@@PAVAbstractPlayerFactory@@@Z) referenced in function _main
FlyFFServer.obj : error LNK2019: unresolved external symbol "public: __thiscall Selector::Selector(void)" (??0Selector@@QAE@XZ) referenced in function _main
PacketCreator.obj : error LNK2019: unresolved external symbol "public: void __thiscall PacketHandler::sendPacket(unsigned char *,int)" (?sendPacket@PacketHandler@@QAEXPAEH@Z) referenced in function "public: void __thiscall Player::sendPacket(unsigned char *,int)" (?sendPacket@Player@@QAEXPAEH@Z)
Any Clues?
-
Re: [Help]Few Problems
you need to include the appropriate header file. The error exist because a function was called without first being referenced. Look a little closely and you will spot the problem.
-
Re: [Help]Few Problems
Thanks Glaphan...But thats the problem where do i look?
My eyes are beginning to deceive me
My Mind is Saying Look at Acceptor.h/Acceptor.cpp and Selector.h/Selector.cpp
My Eyes is saying Look at Packet Creator.h/.cpp and FlyFFServer.h/FlyFFServer.cpp
-
Re: [Help]Few Problems
Hmmm Yeah...i think PacketCreator.h and FlyffServer.h
but wait till Glaph replies
-
Re: [Help]Few Problems
No i don't think that i think its Acceptor.h and Selector.h because public: __thiscall Acceptor::Acceptor(int,class Selector *,class AbstractPlayerFactory *)"
-
Re: [Help]Few Problems
I know that this post is a little old but while no answer where given, i post here this soluce for those who 're looking for it :
Add this after the other include :
Code:
#include "../Connection/Acceptor.cpp"
#include "../Connection/Selector.cpp"
#include "../Connection/PacketHandler.cpp"
-
Re: [Help]Few Problems