Ich möchte mit meinem Raspberry Funksteckdosen steuern dafür braucht man unter anderem raspberry-remote doch wenn ich make send machen dann gibt es einen Kompiler Fehler
Code: Alles auswählen
root@raspberrypi:~# cd raspberry-remote
root@raspberrypi:~/raspberry-remote# make send
g++ -Wall -lwiringPi -c -o RCSwitch.o RCSwitch.cpp
RCSwitch.cpp:31:42: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
unsigned long RCSwitch::nReceivedValue = NULL;
^~~~
RCSwitch.cpp: In constructor ‘RCSwitch::RCSwitch()’:
RCSwitch.cpp:41:30: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
RCSwitch::nReceivedValue = NULL;
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCo deWordB(int, int, boolean)’:
RCSwitch.cpp:218:12: error: invalid conversion from ‘ch ar’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCo deWordA(char*, int, boolean)’:
RCSwitch.cpp:261:14: error: invalid conversion from ‘ch ar’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp:270:14: error: invalid conversion from ‘ch ar’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCo deWordD(char*, int, boolean)’:
RCSwitch.cpp:335:14: error: invalid conversion from ‘ch ar’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp:344:14: error: invalid conversion from ‘ch ar’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘char* RCSwitch::getCo deWordC(char, int, int, boolean)’:
RCSwitch.cpp:388:12: error: invalid conversion from ‘ch ar’ to ‘char*’ [-fpermissive]
return '\0';
^~~~
RCSwitch.cpp: In member function ‘void RCSwitch::enable Receive()’:
RCSwitch.cpp:569:32: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
RCSwitch::nReceivedValue = NULL;
^~~~
RCSwitch.cpp:570:36: warning: converting to non-pointer type ‘unsigned int’ from NULL [-Wconversion-null]
RCSwitch::nReceivedBitlength = NULL;
^~~~
RCSwitch.cpp: In member function ‘bool RCSwitch::availa ble()’:
RCSwitch.cpp:582:38: warning: NULL used in arithmetic -Wpointer-arith]
return RCSwitch::nReceivedValue != NULL;
^~~~
RCSwitch.cpp: In member function ‘void RCSwitch::resetA vailable()’:
RCSwitch.cpp:586:30: warning: converting to non-pointer type ‘long unsigned int’ from NULL [-Wconversion-null]
RCSwitch::nReceivedValue = NULL;
^~~~
make: *** [<eingebaut>: RCSwitch.o] Fehler 1