OK now I have anoder problem...
All it compile OK but when I try the EPB in game it just crash but if I use it as metamod plugin it work OK. I think that there is some problem with the .def file.
Here the makefile:
Quote:
#
# E[POD]bot makefile for MingW32
#
CPP = g++
CPPFLAGS = -march=pentium4 -O2 -w -I./hlsdk -I./metamod
OBJ=bot.o bot_ai.o bot_chat.o bot_client.o bot_combat.o bot_globals.o bot_navigate.o bot_sounds.o compress.o dll.o engine.o log.o linkfunc.o meta_api.o namefunc.o util.o waypoint.o
EPB.dll: ${OBJ}
dllwrap -s --add-stdcall-alias --def epb.def --driver-name g++ -o EPB.dll ${OBJ}
clean:
-del *.o
-del *.dll
%.o: %.cpp
${CPP} ${CPPFLAGS} -c $< -o $@
%.o: %.c
${CPP} ${CPPFLAGS} -c $< -o $@
|
Here the .def file:
Quote:
LIBRARY EPB
EXPORTS
GiveFnptrsToDll @1
SECTIONS
.data READ WRITE
|
When linking it come the error:
Quote:
dlltool: Syntax error in def file epb.def:4
Warning: resolving _GiveFnptrsToDll by linking to _GiveFnptrsToDll@8
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
dlltool: Syntax error in def file epb.def:4
Warning: resolving _GiveFnptrsToDll by linking to _GiveFnptrsToDll@8
Use --enable-stdcall-fixup to disable these warnings
Use --disable-stdcall-fixup to disable these fixups
|
What I must do?