Advertisement
Guest User

Untitled

a guest
Sep 7th, 2016
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 6.66 KB | None | 0 0
  1. basehooklinux sudo make                                                     master  - ~
  2. test -d bin/Debug || mkdir -p bin/Debug
  3. test -d obj/Debug || mkdir -p obj/Debug
  4. clang++ -fpermissive -pthread -Wall -fno-use-cxa-atexit -std=c++11 -g -fPIC  -c main.cpp -o obj/Debug/main.o
  5. In file included from main.cpp:3:
  6. In file included from ./main.h:15:
  7. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'bool (*)(void *, int,
  8.      CEngineClient::player_info_s *)' casts away qualifiers
  9.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  10.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  11. ./sdk.h:47:16: note: in instantiation of function template specialization 'getvfunc<bool
  12.      (*)(void *, int, CEngineClient::player_info_s *)>' requested here
  13.         return getvfunc<oGetPlayerInfo>(this, 8)(this, iIndex, pInfo);
  14.                ^
  15. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'int (*)(void *)' casts
  16.       away qualifiers
  17.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  18.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  19. ./sdk.h:53:16: note: in instantiation of function template specialization
  20.       'getvfunc<int (*)(void *)>' requested here
  21.         return getvfunc< oGetLocalPlayer >(this, 12)(this);
  22.                ^
  23. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'CBaseEntity *(*)(void *,
  24.      int)' casts away qualifiers
  25.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  26.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  27. ./sdk.h:63:16: note: in instantiation of function template specialization
  28.       'getvfunc<CBaseEntity *(*)(void *, int)>' requested here
  29.         return getvfunc<oGetClientEntity>(this, 3)(this, index);
  30.                ^
  31. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'bool (*)(void *, const
  32.      Vector &, Vector &)' casts away qualifiers
  33.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  34.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35. ./sdk.h:74:16: note: in instantiation of function template specialization 'getvfunc<bool
  36.      (*)(void *, const Vector &, Vector &)>' requested here
  37.         return getvfunc<oScreenPosition>(this, 11)(this, vIn, vOut);
  38.                ^
  39. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, int, int,
  40.      int, int)' casts away qualifiers
  41.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  42.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  43. ./sdk.h:83:4: note: in instantiation of function template specialization 'getvfunc<void
  44.      (*)(void *, int, int, int, int)>' requested here
  45.                         getvfunc<oDrawSetColor>(this, 14)(this, r, g, b, a);
  46.                         ^
  47. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, unsigned
  48.      long long)' casts away qualifiers
  49.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  50.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  51. ./sdk.h:98:4: note: in instantiation of function template specialization 'getvfunc<void
  52.      (*)(void *, unsigned long long)>' requested here
  53.                         getvfunc<oDrawSetTextFont>(this, 23)(this, font);
  54.                         ^
  55. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to
  56.       'void (*)(void *, int, int)' casts away qualifiers
  57.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  58.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  59. ./sdk.h:108:4: note: in instantiation of function template specialization 'getvfunc<void
  60.      (*)(void *, int, int)>' requested here
  61.                         getvfunc<oDrawSetTextPos>(this, 26)(this, x, y);
  62.                         ^
  63. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, const
  64.      wchar_t *, int, int)' casts away qualifiers
  65.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  66.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  67. ./sdk.h:113:11: note: in instantiation of function template specialization
  68.       'getvfunc<void (*)(void *, const wchar_t *, int, int)>' requested here
  69.                         return getvfunc<oDrawPrintText>(this, 28)(this, text, te...
  70.                                ^
  71. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'unsigned long long
  72.      (*)(void *)' casts away qualifiers
  73.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  74.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  75. ./sdk.h:118:11: note: in instantiation of function template specialization
  76.       'getvfunc<unsigned long long (*)(void *)>' requested here
  77.                         return getvfunc<oCreateFont>(this, 71)(this);
  78.                                ^
  79. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, unsigned
  80.      long long, const char *, int, int, int, int, int, int, int)' casts away qualifiers
  81.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  82.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  83. ./sdk.h:123:4: note: in instantiation of function template specialization 'getvfunc<void
  84.      (*)(void *, unsigned long long, const char *, int, int, int, int, int, int, int)>'
  85.       requested here
  86.                         getvfunc<oSetFontGlyphSet>(this, 72)(this, font, FontNam...
  87.                         ^
  88. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'void (*)(void *, unsigned
  89.      long long, const wchar_t *, int &, int &)' casts away qualifiers
  90.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  91.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  92. ./sdk.h:128:4: note: in instantiation of function template specialization 'getvfunc<void
  93.      (*)(void *, unsigned long long, const wchar_t *, int &, int &)>' requested here
  94.                         getvfunc<oGetTextSize>(this, 79)(this, font, text, wide, tall);
  95.                         ^
  96. ./sdk.h:20:9: error: reinterpret_cast from 'const void *' to 'const char *(*)(void *,
  97.      unsigned long long)' casts away qualifiers
  98.         return reinterpret_cast<Fn>(getvtable(inst, offset)[index]);
  99.                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  100. ./sdk.h:138:11: note: in instantiation of function template specialization
  101.       'getvfunc<const char *(*)(void *, unsigned long long)>' requested here
  102.                         return getvfunc<oGetName>(this, 37)(this, vguiPanel);
  103.                                ^
  104. 12 errors generated.
  105. makefile:58: recipe for target 'obj/Debug/main.o' failed
  106. make: *** [obj/Debug/main.o] Error 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement