02.06.2014, 06:01
Quote:
Hi,
recently I downloaded sampgdk and have this warnings and 1 error: Code:
C:\Users\Malganys\Desktop\C++\include\plugin.h In file included from C:\Users\Malganys\Desktop\C++\include/plugin.h 22 C:\Users\Malganys\Desktop\C++\include\a_samp.h from C:\Users\Malganys\Desktop\C++\include/a_samp.h 2 C:\Users\Malganys\Desktop\C++\Programa.cpp from C:\Users\Malganys\Desktop\C++\Programa.cpp 185 47 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Warning] 'packed' attribute ignored for field of type 'char [20]' [-Wattributes] 215 25 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Note] in expansion of macro 'PACKED' 185 47 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Warning] 'packed' attribute ignored for field of type 'char' [-Wattributes] 265 25 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Note] in expansion of macro 'PACKED' 185 47 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Warning] 'packed' attribute ignored for field of type 'char' [-Wattributes] 266 25 C:\Users\Malganys\Desktop\C++\include\sdk\amx\amx.h [Note] in expansion of macro 'PACKED' C:\Program Files (x86)\Dev-Cpp\MinGW64\x86_64-w64-mingw32\lib32\libmingw32.a(lib32_libmingw32_a-crt0_c.o) In function `main': 18 h:\crossdev\src\mingw-w64-v3-svn\mingw-w64-crt\crt\crt0_c.c undefined reference to `WinMain@16' C:\Users\Malganys\Desktop\C++\collect2.exe [Error] ld returned 1 exit status Code:
#if defined __GNUC__ #define PACKED __attribute__((packed)) #else #define PACKED #endif |