Can someone please help me?
I'm trying to compile the bot but I keep getting this error:
/usr/include/c++/4.7/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
init.cpp: In function ‘void* upd(void*)’:
init.cpp:472:1: warning: no return statement in function returning non-void [-Wreturn-type]
make: *** [obj/init.o] Error 1
I tried adding "-std=c++11" to the "make -f makefile.unix USE_UPNP=-" command but it isn't a valid thing.
Edit 1: I now have reason to believe the problem is in my Makefile. Checking it out now...
Edit 2: I still have no idea what to do.
1) Find in /src/makefile.unix line 106:
# CXXFLAGS can be specified on the make command line, so we use xCXXFLAGS that only
# adds some defaults in front. Unfortunately, CXXFLAGS=... $(CXXFLAGS) does not work.
xCXXFLAGS=-O2 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
$(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS)
2) Add -std=c++11 so:
xCXXFLAGS=-O2
-std=c++11 -pthread -Wall -Wextra -Wformat -Wformat-security -Wno-unused-parameter \
$(DEBUGFLAGS) $(DEFS) $(HARDENING) $(CXXFLAGS)
3) make -f makefile.unix