Guten Morgen,
ich habe mir folgendes kopiert und eingefügt :
#include <iostream>
#include "/home/pi/rcswitch-pi/RCSwitch.h"
#include <stdlib.h>
#include <stdio.h>
#include <fstream>
using namespace std;
/*
RF_Sniffer
Hacked from http://code.google.com/p/rc-switch/
by @justy to provide a handy RF code sniffer
*/
RCSwitch mySwitch;
int main(int argc, char *argv[]) {
// This pin is not the first pin on the RPi GPIO header!
// Consult https://projects.drogon.net/raspberry-pi/wiringpi/pins/
// for more information.
int PIN = 2;
if(wiringPiSetup() == -1)
return 0;
mySwitch = RCSwitch(); HIER KOMMT DER FEHLER : undefinded reference to 'RCSwitch::RCSwitch()'
mySwitch.enableReceive(PIN); // Receiver on interrupt 0 => that is pin #2
while(1) {
Kann mir bitte jemand erklären, was dort falsch ist ?
Axel