entropyqueen / YateBTS_smssend

C++ plugin for YateBTS to easily send SMS through command line
MIT License
19 stars 12 forks source link

make install fails on raspian #4

Closed eliddell1 closed 6 years ago

eliddell1 commented 6 years ago

hello, I installed this fine on my normal linux box, but when i run the make files on a raspberry pi i get the following error:

root@pitower:/YateBTS_smssend# make && make install g++ -std=c++11 -fPIC -I /usr/local/include/yate/ -c smssend.cpp -o smssend.o smssend.cpp: In static member function ‘static bool {anonymous}::SmsSendPlugin::sendSMS(const TelEngine::String&, const TelEngine::String&, const TelEngine::String&)’: smssend.cpp:79:68: error: cannot pass objects of non-trivially-copyable type ‘const class TelEngine::String’ through ‘...’ Debug(DebugGoOn, "Couldn't retrieve TMSI for MSISDN: %s", msisdn); ^ Makefile:27: recipe for target 'smssend.o' failed

any ideas?

entropyqueen commented 6 years ago

Hi, it looks like the same error as #1 , try updating your g++ :)

eliddell1 commented 6 years ago

looking into it.. thanks!

eliddell1 commented 6 years ago

updated to gcc6 and still get the same error

eliddell1 commented 6 years ago

i think i got it.. the pi definately needed to update gcc to v 6, which had to be done via stretch repository instead of the jessie repository. I hadn't realized that the old gcc was still default, so i had to modify the makefile to point to g++-6 instead of just g++