You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When compiling via "make" the following error message appears:
In file included from ../TRXManager/TRXManager.h:30:0,
from ../UMTS/UMTSL1CC.h:28,
from ../UMTS/UMTSL1FEC.h:28,
from ../UMTS/UMTSConfig.h:30,
from CLI.cpp:31:
../UMTS/UMTSRadioModem.h: At global scope:
../UMTS/UMTSRadioModem.h:181:28: error: 'constexpr' needed for in-class initialization of static data member 'const float UMTS::RadioModem::mRACHThreshold' of non-integral type [-fpermissive]
static const float mRACHThreshold = 10.0;
^~~~~~~~~~~~~~
CLI.cpp: In function 'CommandLine::CLIStatus CommandLine::sendsimple(int, char**, std::ostream&)':
CLI.cpp:480:137: warning: format '%u' expects argument of type 'unsigned int', but argument 13 has type 'size_t {aka long unsigned int' [-Wformat=]
SI, (unsigned)random(), srcAddr,srcAddr,sock.port(),(unsigned)random(), IMSI, (unsigned)random(),sock.port(), strlen(txtBuf), txtBuf);
~~~~~~~~~~~~~~ ^
CLI.cpp: At global scope:
CLI.cpp:270:18: warning: 'CommandLine::CLIStatus CommandLine::printStats(int, char**, std::ostream&)' declared 'static' but never defined [-Wunused-function]
static CLIStatus printStats(int argc, char** argv, ostream& os);
^~~~~~~~~~
CLI.cpp:1092:18: warning: 'CommandLine::CLIStatus CommandLine::endcall(int, char**, std::ostream&)' defined but not used [-Wunused-function]
static CLIStatus endcall(int argc, char argv, ostream& os)
^~~~~~~
CLI.cpp:370:20: warning: 'CommandLine::tmsisHelp' defined but not used [-Wunused-variable]
static const char tmsisHelp = "[-l | clear | dump [-l] | -delete -tmsi | -delete -imsi | -query ] --\n"
^~~~~~~~~
CLI.cpp:231:27: warning: 'std::map<std::__cxx11::basic_string, std::__cxx11::basic_string > CommandLine::cliParse(int&, char&, std::ostream&, const char)' defined but not used [-Wunused-function]
static map<string,string> cliParse(int &argc, char **&argv, ostream &os, const char *optstring)
^~~~~~~~
make[2]: *** [Makefile:500: CLI.lo] Error 1
make[2]: Leaving directory '/home/mike/folder/progs/openbts_3g_v1/OpenBTS-UMTS/CLI'
make[1]: *** [Makefile:549: all-recursive] Error 1
make[1]: Leaving directory '/home/mike/folder/progs/openbts_3g_v1/OpenBTS-UMTS'
make: *** [Makefile:480: all] Error 2
The text was updated successfully, but these errors were encountered:
mike01
changed the title
Compilation failes with error: 'constexpr' needed for in-class initialization of static data member
Compilation fails with error: 'constexpr' needed for in-class initialization of static data member
Sep 25, 2018
When compiling via "make" the following error message appears:
In file included from ../TRXManager/TRXManager.h:30:0,
from ../UMTS/UMTSL1CC.h:28,
from ../UMTS/UMTSL1FEC.h:28,
from ../UMTS/UMTSConfig.h:30,
from CLI.cpp:31:
../UMTS/UMTSRadioModem.h: At global scope:
../UMTS/UMTSRadioModem.h:181:28: error: 'constexpr' needed for in-class initialization of static data member 'const float UMTS::RadioModem::mRACHThreshold' of non-integral type [-fpermissive]
static const float mRACHThreshold = 10.0;
^~~~~~~~~~~~~~
CLI.cpp: In function 'CommandLine::CLIStatus CommandLine::sendsimple(int, char**, std::ostream&)':
CLI.cpp:480:137: warning: format '%u' expects argument of type 'unsigned int', but argument 13 has type 'size_t {aka long unsigned int' [-Wformat=]
SI, (unsigned)random(), srcAddr,srcAddr,sock.port(),(unsigned)random(), IMSI, (unsigned)random(),sock.port(), strlen(txtBuf), txtBuf);
~~~~~~~~~~~~~~ ^
CLI.cpp: At global scope:
CLI.cpp:270:18: warning: 'CommandLine::CLIStatus CommandLine::printStats(int, char**, std::ostream&)' declared 'static' but never defined [-Wunused-function]
static CLIStatus printStats(int argc, char** argv, ostream& os);
^~~~~~~~~~
CLI.cpp:1092:18: warning: 'CommandLine::CLIStatus CommandLine::endcall(int, char**, std::ostream&)' defined but not used [-Wunused-function]
static CLIStatus endcall(int argc, char argv, ostream& os)
^~~~~~~
CLI.cpp:370:20: warning: 'CommandLine::tmsisHelp' defined but not used [-Wunused-variable]
static const char tmsisHelp = "[-l | clear | dump [-l] | -delete -tmsi | -delete -imsi | -query ] --\n"
^~~~~~~~~
CLI.cpp:231:27: warning: 'std::map<std::__cxx11::basic_string, std::__cxx11::basic_string > CommandLine::cliParse(int&, char&, std::ostream&, const char)' defined but not used [-Wunused-function]
static map<string,string> cliParse(int &argc, char **&argv, ostream &os, const char *optstring)
^~~~~~~~
make[2]: *** [Makefile:500: CLI.lo] Error 1
make[2]: Leaving directory '/home/mike/folder/progs/openbts_3g_v1/OpenBTS-UMTS/CLI'
make[1]: *** [Makefile:549: all-recursive] Error 1
make[1]: Leaving directory '/home/mike/folder/progs/openbts_3g_v1/OpenBTS-UMTS'
make: *** [Makefile:480: all] Error 2
The text was updated successfully, but these errors were encountered: