[Help]Few Problems

Results 1 to 7 of 7
  1. #1
    Account Upgraded | Title Enabled! Shinija is offline
    MemberRank
    Oct 2007 Join Date
    UKLocation
    684Posts

    [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?


  2. #2
    Alpha Member GlaphanKing is offline
    MemberRank
    Sep 2008 Join Date
    World of MorrowLocation
    2,594Posts

    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.

  3. #3
    Account Upgraded | Title Enabled! Shinija is offline
    MemberRank
    Oct 2007 Join Date
    UKLocation
    684Posts

    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

  4. #4
    Apprentice azndung is offline
    MemberRank
    Dec 2007 Join Date
    19Posts

    Re: [Help]Few Problems

    Hmmm Yeah...i think PacketCreator.h and FlyffServer.h

    but wait till Glaph replies

  5. #5
    Account Upgraded | Title Enabled! Shinija is offline
    MemberRank
    Oct 2007 Join Date
    UKLocation
    684Posts

    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 *)"

  6. #6
    Account Upgraded | Title Enabled! divinepunition is offline
    MemberRank
    Dec 2008 Join Date
    FranceLocation
    621Posts

    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"

  7. #7
    Infraction Banned bedros is offline
    MemberRank
    Oct 2008 Join Date
    67Posts

    Re: [Help]Few Problems

    restart



Advertisement