diff --git a/compiler/amxxpc/Binary.h b/compiler/amxxpc/Binary.h index 9270bd86..4747902e 100755 --- a/compiler/amxxpc/Binary.h +++ b/compiler/amxxpc/Binary.h @@ -50,4 +50,5 @@ private: FILE *m_Fp; }; -#endif //_INCLUDE_BINARY_H \ No newline at end of file +#endif //_INCLUDE_BINARY_H + diff --git a/compiler/amxxpc/Makefile b/compiler/amxxpc/Makefile index 09948bd4..c94ab5ad 100755 --- a/compiler/amxxpc/Makefile +++ b/compiler/amxxpc/Makefile @@ -5,10 +5,10 @@ OPT_FLAGS = -O3 -fno-rtti -funroll-loops -s -pipe DEBUG_FLAGS = -g -ggdb3 -CPP = gcc +CPP = g++ BINARY = amxxpc -OBJECTS = amx.cpp amxxpc.cpp +OBJECTS = amx.cpp amxxpc.cpp Binary.cpp LINK = -lz @@ -22,7 +22,7 @@ else CFLAGS = $(OPT_FLAGS) endif -CFLAGS += -DLINUX -DNDEBUG -Wno-deprecated -fno-exceptions -DHAVE_STDINT_H -DAMX_ANSIONLY +CFLAGS += -DLINUX -DNDEBUG -Wno-deprecated -fexceptions -DHAVE_STDINT_H -DAMX_ANSIONLY OBJ_LINUX := $(OBJECTS:%.cpp=$(BIN_DIR)/%.o) diff --git a/compiler/amxxpc/amxxpc.cpp b/compiler/amxxpc/amxxpc.cpp index bd622ba8..e405893c 100755 --- a/compiler/amxxpc/amxxpc.cpp +++ b/compiler/amxxpc/amxxpc.cpp @@ -50,7 +50,7 @@ int main(int argc, char **argv) if (!sc32 || !pc_printf) { #ifdef __linux__ - printf("32bit compiler failed to link: %p|%p.\n",sc32, sc_printf); + printf("32bit compiler failed to link: %p.\n",sc32); #else printf("32bit compiler failed to link: %d.\n", GetLastError()); #endif diff --git a/compiler/amxxpc/amxxpc.h b/compiler/amxxpc/amxxpc.h index c1e33d73..d67f3979 100755 --- a/compiler/amxxpc/amxxpc.h +++ b/compiler/amxxpc/amxxpc.h @@ -16,7 +16,7 @@ #include #ifdef __linux__ -# define dlmount(x) dlopen(x, RTLD_NOW) +# define dlmount(x) dlopen(x, RTLD_NOW|RTLD_GLOBAL) typedef void* HINSTANCE; #else # define dlsym(x, s) GetProcAddress(x, s)