Open mike01 opened 5 years ago
../UMTS/UMTSRadioModem.h:181:16: error: ‘constexpr’ does not name a type i got same error. does anyone fix that?
Same here. Researching possible solutions
found it. #25 and #26 are caused for more or less the same thing. see https://github.com/RangeNetworks/OpenBTS-UMTS/issues/26#issuecomment-461852514
If not working just with gcc-5 g++-5 try to add make CXXFLAGS=-std=c++11
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);