Me tira este error al compilar un plugin de metamod (amxmodx).
Código:
amxcore.obj : error LNK2019: unresolved external symbol __imp__CharLowerA@4 referenced in function "long __cdecl core_tolower(struct tagAMX *,long *)" (?core_tolower@@YAJPAUtagAMX@@PAJ@Z)
amxcore.obj : error LNK2019: unresolved external symbol __imp__CharUpperA@4 referenced in function "long __cdecl core_toupper(struct tagAMX *,long *)" (?core_toupper@@YAJPAUtagAMX@@PAJ@Z)
jitdebug/amxmodx_mm.dll : fatal error LNK1120: 2 unresolved externals
Aca la parte del code.
Código:
static cell AMX_NATIVE_CALL core_tolower(AMX *amx,cell *params)
{
/*(void)amx;
#if defined __WIN32__ || defined _WIN32 || defined WIN32
return (cell)CharLower((LPTSTR)params[1]);
#elif defined _Windows
return (cell)AnsiLower((LPSTR)params[1]);
#else
return tolower((int)params[1]);
#endif*/
return 0;
}
static cell AMX_NATIVE_CALL core_toupper(AMX *amx,cell *params)
{
/*(void)amx;
#if defined __WIN32__ || defined _WIN32 || defined WIN32
return (cell)CharUpper((LPTSTR)params[1]);
#elif defined _Windows
return (cell)AnsiUpper((LPSTR)params[1]);
#else
return toupper((int)params[1]);
#endif*/
return 0;
}
Estoy usando el msvc 2005 express en win server 2003,instale Microsoft Platform SDK.
Gracias de antemano .