No compile errors or warnings, but when I start up the server, the module won't load because of this:
Code:
L 03/08/2015 - 00:23:51: [META] ERROR: dll: Failed query plugin '<test_mm_i386.so>'; Couldn't open file '/home/ubuntu/steamcmd/cstrike/addons/test_plugin/dlls/test_mm_i386.so': /home/ubuntu/steamcmd/cstrike/addons/test_plugin/dlls/test_mm_i386.so: undefined symbol: _Z12UTIL_VarArgsPKcz
L 03/08/2015 - 00:23:51: [META] ERROR: dll: Skipping plugin '<test_mm_i386.so>'; couldn't query
Why do this just happen in Linux but it works just fine in Windows?
util.cpp
Code:
char* UTIL_VarArgs( char *format, ... )
{
va_list argptr;
static char string[1024];
va_start (argptr, format);
vsprintf (string, format,argptr);
va_end (argptr);
return string;
}
util.h
Code:
extern char *UTIL_VarArgs( char *format, ... );