Advertisement
Guest User

plugin compile errors

a guest
Jun 15th, 2015
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.70 KB | None | 0 0
  1. In file included from SDK/plugin.h:8:0,
  2. from plugin.cpp:1:
  3. SDK/plugincommon.h:41:4: error: #error "You must define one of WIN32, LINUX or FREEBSD"
  4. #error "You must define one of WIN32, LINUX or FREEBSD"
  5. ^
  6. In file included from SDK/plugin.h:9:0,
  7. from plugin.cpp:1:
  8. SDK/amx/amx.h:185:47: warning: ‘packed’ attribute ignored for field of type ‘char [20]’ [-Wattributes]
  9. #define PACKED __attribute__((packed))
  10. ^
  11. SDK/amx/amx.h:215:25: note: in expansion of macro ‘PACKED’
  12. char name[sEXPMAX+1] PACKED;
  13. ^
  14. SDK/amx/amx.h:185:47: warning: ‘packed’ attribute ignored for field of type ‘char’ [-Wattributes]
  15. #define PACKED __attribute__((packed))
  16. ^
  17. SDK/amx/amx.h:265:25: note: in expansion of macro ‘PACKED’
  18. char file_version PACKED; /* file format version */
  19. ^
  20. SDK/amx/amx.h:185:47: warning: ‘packed’ attribute ignored for field of type ‘char’ [-Wattributes]
  21. #define PACKED __attribute__((packed))
  22. ^
  23. SDK/amx/amx.h:266:25: note: in expansion of macro ‘PACKED’
  24. char amx_version PACKED; /* required version of the AMX */
  25. ^
  26. SDK/amx/amx.h:384:72: error: ‘size_t’ has not been declared
  27. int AMXAPI amx_GetString(char *dest,const cell *source, int use_wchar, size_t size);
  28. ^
  29. SDK/amx/amx.h:404:83: error: ‘size_t’ has not been declared
  30. int AMXAPI amx_SetString(cell *dest, const char *source, int pack, int use_wchar, size_t size);
  31. ^
  32. plugin.cpp:9:1: error: ‘PLUGIN_EXPORT’ does not name a type
  33. PLUGIN_EXPORT bool PLUGIN_CALL Load(void **ppData)
  34. ^
  35. plugin.cpp:16:1: error: ‘PLUGIN_EXPORT’ does not name a type
  36. PLUGIN_EXPORT void PLUGIN_CALL Unload()
  37. ^
  38. plugin.cpp: In function ‘cell YourNativeNameHere(AMX*, cell*)’:
  39. plugin.cpp:22:52: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings]
  40. logprintf("I haz made my first plugin!! :)");
  41. ^
  42. plugin.cpp: At global scope:
  43. plugin.cpp:32:1: error: ‘PLUGIN_EXPORT’ does not name a type
  44. PLUGIN_EXPORT unsigned int PLUGIN_CALL Supports()
  45. ^
  46. plugin.cpp:37:1: error: ‘PLUGIN_EXPORT’ does not name a type
  47. PLUGIN_EXPORT int PLUGIN_CALL AmxLoad(AMX *amx)
  48. ^
  49. plugin.cpp:42:1: error: ‘PLUGIN_EXPORT’ does not name a type
  50. PLUGIN_EXPORT int PLUGIN_CALL AmxUnload(AMX *amx)
  51. ^
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement