I have the following errors when I try to compile my code (in visual C++ 2010 it works nice!):
rafal@ubuntu:~/Desktop/DriftPointsCounter/DriftPointsCounter$ make DriftPointsCounter rm -f *~ *.o *.so g++ -D DriftPointsCounter -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME=\"DriftPointsCounter\" -I ./SDK/amx/ ./SDK/amx/*.c g++ -D DriftPointsCounter -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME=\"DriftPointsCounter\" -I ./SDK/amx/ ./SDK/*.cpp g++ -D DriftPointsCounter -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME=\"DriftPointsCounter\" -I ./SDK/amx/ *.cpp In file included from main.cpp:20:0: ./ThirdPartySource/Invoke.cpp: In member function ‘int Invoke::callNative(const PAWN::Native*, ...)’: ./ThirdPartySource/Invoke.cpp:30:76: error: ‘strlen’ was not declared in this scope ./ThirdPartySource/Invoke.cpp: In member function ‘int Invoke::getAddresses()’: ./ThirdPartySource/Invoke.cpp:129:18: error: ‘numeric_limits’ is not a member of ‘std’ ./ThirdPartySource/Invoke.cpp:129:38: error: expected primary-expression before ‘int’ ./ThirdPartySource/Invoke.cpp:129:38: error: expected ‘)’ before ‘int’ make: *** [DriftPointsCounter] Error 1 rafal@ubuntu:~/Desktop/DriftPointsCounter/DriftPointsCounter$
This is the file (cpp and h):
http://code.google.c...hirdPartySource
This is my makefile:
# This file demonstrates how to compile the DriftPointsCounter project on Linux. # # To compile DriftPointsCounter do: # # make DriftPointsCounter # GPP = g++ GCC = gcc DriftPointsCounter_OUTFILE = "plugins/DriftPointsCounter.so" COMPILE_FLAGS = -m32 -fPIC -c -O3 -w -D LINUX -D PROJECT_NAME=\"DriftPointsCounter\" -I ./SDK/amx/ DriftPointsCounter = -D DriftPointsCounter $(COMPILE_FLAGS) all: DriftPointsCounter clean: -rm -f *~ *.o *.so DriftPointsCounter: clean $(GPP) $(DriftPointsCounter) ./SDK/amx/*.c $(GPP) $(DriftPointsCounter) ./SDK/*.cpp $(GPP) $(DriftPointsCounter) *.cpp $(GPP) -m32 -O2 -fshort-wchar -shared -o $(DriftPointsCounter_OUTFILE) *.o
I'm using the newest ubuntu with all updates (32 bit os).

New Topic/Question
Reply



MultiQuote





|