Ok, first of all, Hello, since I'm new here.
I made a small metamod plugin of my own, just makes an HTTP request and parses the data (for now).
I'm having a lot of troubles compiling it under linux. (I'm using VMWare, since I don't have access to a linux box)
VM is a Redhat 7.3 .
I'm using the metamod makefile with my own Config.mak .
Everything compiles fine, BUT:
Code:
[compile@compiler czlac]$ ldd -r debug.linux/czlac_i386.so
libdl.so.2 => /lib/libdl.so.2 (0x4001c000)
libstdc++-libc6.2-2.so.3 => /usr/lib/libstdc++-libc6.2-2.so.3 (0x40020000)
libm.so.6 => /lib/i686/libm.so.6 (0x40063000)
libc.so.6 => /lib/i686/libc.so.6 (0x42000000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000)
undefined symbol: UTIL_VarArgs__FPCce (debug.linux/czlac_i386.so)
undefined symbol: PlayerAPI_Init__Fv (debug.linux/czlac_i386.so)
From torchering g++ endlessly, I've come to the conclusion that two of my files, czlac.cpp, and dllapi_post.cpp are responsible.
the functions that are "undefined" are declared as:
Code:
(in utils.h)
#ifndef _UTILS_H_
#define _UTILS_H_
void UTIL_HudMessage(edict_t *pEntity, const hudtextparms_t &textparms, char *pMessage);
void UTIL_ClientPrint( edict_t *pEntity, int msg_dest, char *msg );
void UTIL_ShowMOTD( edict_t *client , char *motd, int mlen, const char *name);
void UTIL_ShowMenu( edict_t* pEntity, int slots, int time, char *menu, int mlen );
char *UTIL_VarArgs(const char *fmt, ...);
#endif
(and the same things in utils.cpp)
This file is included last into both czlac.cpp and dllapi.cpp .
Can someone at least hint me in the right direction?
O and lastly
Code:
[compile@compiler czlac]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-110)