+ Reply to Thread
Results 1 to 5 of 5

Thread: AGPClasses.h

  1. #1
    America's Army Subscriber
    Join Date
    Jun 2008
    Posts
    128

    AGPClasses.h

    When I include the AGPClasses.h to support my AuxROF function, it gives me 100+ C2011 Errors, which this is just one

    Code:
    1>F:\KEEP\AA SDK's\Projects\Hack -- 2.8.5\Hack - 2.8.5\Engine\Inc\AGPClasses.h(15): error C2011: 'ESwapType' : 'enum' type redefinition
    1>          f:\keep\aa sdk's\projects\hack -- 2.8.5\hack - 2.8.5\AGP_Classes.h(15) : see declaration of 'ESwapType'
    I'm really confused...

    The only reason I included the AGPClasses.h file is I was reading and it was the solution for this error

    Code:
    >Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class UClass * __cdecl AAGP_Weapon::StaticClass(void)" (__imp_?StaticClass@AAGP_Weapon@@SAPAVUClass@@XZ) referenced in function "class AAGP_Weapon * __cdecl Cast<class AAGP_Weapon>(class UObject *)" (??$Cast@VAAGP_Weapon@@@@YAPAVAAGP_Weapon@@PAVUObject@@@Z)
    1>.\Release/Entry.dll : fatal error LNK1120: 1 unresolved externals

    --Purchase here
    --Request a hash reset here
    --Join us on Ventrilo here
    --For help & information using the bot go here
    If you need any assistance feel free to PM me here

  2. #2
    America's Army Subscriber
    Join Date
    May 2008
    Posts
    777
    you already have it by the looks of it.
    Look at the locations

    F:\KEEP\AA SDK's\Projects\Hack -- 2.8.5\Hack - 2.8.5\Engine\Inc\AGPClasses.h
    f:\keep\aa sdk's\projects\hack -- 2.8.5\hack - 2.8.5\AGP_Classes.h
    Can you see where you already have it?

    They will both hold the same information just named a little different by the looks of it.

  3. #3
    America's Army Subscriber
    Join Date
    Jun 2008
    Posts
    128
    That fixed my C2011 Error and now I'm left with

    Code:
    1>------ Build started: Project: Entry, Configuration: Release Win32 ------
    1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class UClass * __cdecl AAGP_Weapon::StaticClass(void)" (__imp_?StaticClass@AAGP_Weapon@@SAPAVUClass@@XZ) referenced in function "class AAGP_Weapon * __cdecl Cast<class AAGP_Weapon>(class UObject *)" (??$Cast@VAAGP_Weapon@@@@YAPAVAAGP_Weapon@@PAVUObject@@@Z)
    1>.\Release/Entry.dll : fatal error LNK1120: 1 unresolved externals
    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
    This has had me stumped for hours and hours...

    --Purchase here
    --Request a hash reset here
    --Join us on Ventrilo here
    --For help & information using the bot go here
    If you need any assistance feel free to PM me here

  4. #4
    America's Army Subscriber
    Join Date
    Jun 2008
    Posts
    128
    Alright I've narrowed the problem line down to:

    Code:
    AAGP_Weapon* MyWeapon = Cast<AAGP_Weapon>(MPC->Pawn->Weapon);
    Error:
    Code:
    1>  Main.cpp
    1>Main.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: static class UClass * __cdecl AAGP_Weapon::StaticClass(void)" (__imp_?StaticClass@AAGP_Weapon@@SAPAVUClass@@XZ) referenced in function "class AAGP_Weapon * __cdecl Cast<class AAGP_Weapon>(class UObject *)" (??$Cast@VAAGP_Weapon@@@@YAPAVAAGP_Weapon@@PAVUObject@@@Z)
    1>.\Release/Entry.dll : fatal error LNK1120: 1 unresolved externals

    --Purchase here
    --Request a hash reset here
    --Join us on Ventrilo here
    --For help & information using the bot go here
    If you need any assistance feel free to PM me here

  5. #5
    Lead Developer
    Join Date
    Feb 2008
    Posts
    911
    This is simply a linker error.
    Code:
    #pragma comment( lib, "AGP.lib" )
    This solves your problem, given that you have the corresponding library.
    jose607: "You need to downgrade the aimbot."


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts